From 6566c9dffeb53f0e9c5fa2435883043c852987fb Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Fri, 30 Sep 2005 04:52:21 +0000 Subject: r10643: increase smbd max runtime when using valgrind (This used to be commit c394a4a602edba49f00252d0376050c0bdc2f6a8) --- source4/script/tests/test_functions.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'source4/script/tests') diff --git a/source4/script/tests/test_functions.sh b/source4/script/tests/test_functions.sh index ddf81a1610..44d55c99c2 100755 --- a/source4/script/tests/test_functions.sh +++ b/source4/script/tests/test_functions.sh @@ -19,7 +19,11 @@ smbd_check_or_start() { echo -n "STARTING SMBD..." (( - $SMBD_VALGRIND $SRCDIR/bin/smbd --maximum-runtime=2700 -d1 -s $CONFFILE -M single -i < $SMBD_TEST_FIFO > $SMBD_TEST_LOG 2>&1; + runtime=2700 + if [ -n "$SMBD_VALGRIND" ]; then + runtime=7200 + fi + $SMBD_VALGRIND $SRCDIR/bin/smbd --maximum-runtime=$runtime -d1 -s $CONFFILE -M single -i < $SMBD_TEST_FIFO > $SMBD_TEST_LOG 2>&1; ret=$?; rm -f $SMBD_TEST_FIFO; if [ -n "$SOCKET_WRAPPER_DIR" -a -d "$SOCKET_WRAPPER_DIR" ]; then -- cgit