summaryrefslogtreecommitdiff
path: root/source4/script/tests/test_rpc.sh
diff options
context:
space:
mode:
Diffstat (limited to 'source4/script/tests/test_rpc.sh')
-rwxr-xr-xsource4/script/tests/test_rpc.sh6
1 files changed, 5 insertions, 1 deletions
diff --git a/source4/script/tests/test_rpc.sh b/source4/script/tests/test_rpc.sh
index 9e11a3d69a..83f7929614 100755
--- a/source4/script/tests/test_rpc.sh
+++ b/source4/script/tests/test_rpc.sh
@@ -13,6 +13,10 @@ EOF
exit 1;
fi
+if [ -z "$VALGRIND" ]; then
+ export MALLOC_CHECK_=2
+fi
+
server="$1"
username="$2"
password="$3"
@@ -40,7 +44,7 @@ for transport in ncalrpc ncacn_np ncacn_ip_tcp; do
esac
for t in $tests; do
echo Testing $t on $transport with $bindoptions
- testit bin/smbtorture $transport:"$server[$bindoptions]" -U"$username"%"$password" -W $domain $t "$*"
+ testit $VALGRIND bin/smbtorture $transport:"$server[$bindoptions]" -U"$username"%"$password" -W $domain $t "$*"
done
done
done