1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-08 21:18:16 +03:00

r4319: make it easy to use valgrind in the test_posix.sh test suite

This commit is contained in:
Andrew Tridgell 2004-12-21 11:49:01 +00:00 committed by Gerald (Jerry) Carter
parent 32264c6c30
commit 7c09a3ea58

View File

@ -20,7 +20,7 @@ testit() {
trap "rm -f test.$$" EXIT
cmdline="$*"
if ! $cmdline > test.$$ 2>&1; then
if ! $cmdline > test.$$; then
cat test.$$;
rm -f test.$$;
echo "TEST FAILED - $cmdline";
@ -52,5 +52,5 @@ for t in $tests; do
fi
start=""
echo Testing $t
testit bin/smbtorture $unc -U"$username"%"$password" $t
testit $VALGRIND bin/smbtorture $unc -U"$username"%"$password" $t
done