r4319: make it easy to use valgrind in the test_posix.sh test suite
[samba.git] / source4 / script / tests / test_posix.sh
index 06bb43abad92ceaf39ff592085316443d8272b6c..9c46b83552a47d37a806045741471f74d1d8ab79 100755 (executable)
@@ -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