From 39172de4dceb58884525a28d964e6c52f3d933e1 Mon Sep 17 00:00:00 2001 From: Stefan Metzmacher Date: Sat, 11 Jun 2005 17:55:58 +0000 Subject: r7492: give better output metze (This used to be commit 134f5defa0f1eb240207f593866ab75f20943938) --- source4/script/tests/test_functions.sh | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/source4/script/tests/test_functions.sh b/source4/script/tests/test_functions.sh index 7c61eda232..4996dba0cb 100644 --- a/source4/script/tests/test_functions.sh +++ b/source4/script/tests/test_functions.sh @@ -25,8 +25,16 @@ smbd_check_or_start() { if [ -n "$SOCKET_WRAPPER_DIR" -a -d "$SOCKET_WRAPPER_DIR" ]; then rm -f $SOCKET_WRAPPER_DIR/* fi - echo "smbd exists with status $ret"; - echo "smbd exists with status $ret" >>$SMBD_TEST_LOG; + if [ x"$ret" = x"0" ];then + echo "smbd exists with status $ret"; + echo "smbd exists with status $ret" >>$SMBD_TEST_LOG; + elif [ x"$ret" = x"137" ];then + echo "smbd got SIGXCPU and exists with status $ret!" + echo "smbd got SIGXCPU and exists with status $ret!">>$SMBD_TEST_LOG; + else + echo "smbd failed with status $ret!" + echo "smbd failed with status $ret!">>$SMBD_TEST_LOG; + fi exit $ret; ) || exit $? &) 2>/dev/null || exit $? echo "DONE" -- cgit