Add commented-out valgrind line which can be used with gdb.
authorCarl Hetherington <cth@carlh.net>
Mon, 12 Feb 2018 23:46:45 +0000 (23:46 +0000)
committerCarl Hetherington <cth@carlh.net>
Mon, 12 Feb 2018 23:46:45 +0000 (23:46 +0000)
run/tests

index fcb6e1d62ebc8b53b0cf5f5a2d91f6313b32416e..73123fc1ad52415525ac8c24202925ce6a2f5b84 100755 (executable)
--- a/run/tests
+++ b/run/tests
@@ -12,7 +12,8 @@ elif [ "$1" == "--backtrace" ]; then
     gdb -batch -ex "run" -ex "thread apply all bt" -return-child-result --args build/test/unit-tests --catch_system_errors=yes $*
 elif [ "$1" == "--valgrind" ]; then
     shift;
-    valgrind --tool="memcheck" --leak-check=full build/test/unit-tests $*
+#    valgrind --tool="memcheck" --vgdb=yes --vgdb-error=0 build/test/unit-tests $*
+    valgrind --tool="memcheck" build/test/unit-tests $*
 elif [ "$1" == "--callgrind" ]; then
     shift;
     valgrind --tool="callgrind" build/test/unit-tests $*