r4319: make it easy to use valgrind in the test_posix.sh test suite
authorAndrew Tridgell <tridge@samba.org>
Tue, 21 Dec 2004 11:49:01 +0000 (11:49 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 18:07:34 +0000 (13:07 -0500)
(This used to be commit 7c09a3ea581e08bb34972d657d11d7e03b832b65)

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