Add commented-out valgrind line which can be used with gdb.
[dcpomatic.git] / run / tests
index 1ca030ce8e8a779e67618628cfe675134cd85264..73123fc1ad52415525ac8c24202925ce6a2f5b84 100755 (executable)
--- a/run/tests
+++ b/run/tests
@@ -9,10 +9,11 @@ if [ "$1" == "--debug" ]; then
     gdb --args build/test/unit-tests --catch_system_errors=no $*
 elif [ "$1" == "--backtrace" ]; then
     shift;
-    gdb -batch -ex "run" -ex "thread apply all bt" -return-child-result --args build/test/unit-tests --catch_system_errors=no $*
+    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 $*