]> ruderich.org/simon Gitweb - coloredstderr/coloredstderr.git/blobdiff - tests/lib.sh
tests: Run tests under valgrind if it's available.
[coloredstderr/coloredstderr.git] / tests / lib.sh
index 53a2ea444602a09399fd1b5b595e5ce90a03ae28..3e29a55023816cc539065c20c1b8ce898b00b7db 100644 (file)
@@ -74,7 +74,7 @@ run_test() {
             export COLORED_STDERR_FORCE_WRITE
         fi
 
-        "$@" "$testcase" > output 2>&1
+        $valgrind_cmd "$@" "$testcase" > output 2>&1
     )
 
     diff -u "$expected" output \