summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--source4/script/tests/test_functions.sh12
1 files 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"