summaryrefslogtreecommitdiff
path: root/source3/script/tests/functions
diff options
context:
space:
mode:
Diffstat (limited to 'source3/script/tests/functions')
-rw-r--r--source3/script/tests/functions11
1 files changed, 10 insertions, 1 deletions
diff --git a/source3/script/tests/functions b/source3/script/tests/functions
index 13139f6d8f..0981d9e29e 100644
--- a/source3/script/tests/functions
+++ b/source3/script/tests/functions
@@ -43,9 +43,18 @@ stop_smbd()
fi
}
+check_ret_value()
+{
+ ret=$@
+
+ if test $ret != 0; then
+ stop_smbd
+ exit $ret
+ fi
+}
##
-## start/stop smbd daemon
+## start/stop nmbd daemon
##
check_nmbd_running()
{