Catch system errors while doing backtraces.
authorCarl Hetherington <cth@carlh.net>
Sun, 15 Oct 2017 23:55:07 +0000 (00:55 +0100)
committerCarl Hetherington <cth@carlh.net>
Sun, 15 Oct 2017 23:55:07 +0000 (00:55 +0100)
run/tests

index 1ca030ce8e8a779e67618628cfe675134cd85264..fcb6e1d62ebc8b53b0cf5f5a2d91f6313b32416e 100755 (executable)
--- a/run/tests
+++ b/run/tests
@@ -9,7 +9,7 @@ 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 $*