[LTP] [RFC] [PATCH] syslog-lib.sh: Produce TCONF instead of TBROK for journald

Cyril Hrubis chrubis@suse.cz
Tue May 2 20:17:49 CEST 2017


If there is no traditional syslog daemon installed these testcaess exit
with TBROK which is not correct since these tests are simply not
applicable if no syslog daemon is installed.

Signed-off-by: Cyril Hrubis <chrubis@suse.cz>
---
 testcases/kernel/syscalls/syslog/syslog-lib.sh | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/testcases/kernel/syscalls/syslog/syslog-lib.sh b/testcases/kernel/syscalls/syslog/syslog-lib.sh
index e166d3a45..35c13daf7 100755
--- a/testcases/kernel/syscalls/syslog/syslog-lib.sh
+++ b/testcases/kernel/syscalls/syslog/syslog-lib.sh
@@ -86,8 +86,8 @@ EOF
 )
 		fi
 	else
-		tst_resm TBROK "Couldn't find syslogd, syslog-ng or rsyslogd"
-		cleanup 1
+		tst_resm TCONF "Couldn't find syslogd, syslog-ng or rsyslogd"
+		cleanup 32
 	fi
 
 	# Back up configuration file
-- 
2.12.2



More information about the ltp mailing list