From: Carl Hetherington Date: Sun, 15 Oct 2017 23:55:07 +0000 (+0100) Subject: Catch system errors while doing backtraces. X-Git-Tag: v2.11.27~11 X-Git-Url: https://git.carlh.net/gitweb/?p=dcpomatic.git;a=commitdiff_plain;h=59a96716c85915d47c7127d7dd507bb4511a8e6f Catch system errors while doing backtraces. --- diff --git a/run/tests b/run/tests index 1ca030ce8..fcb6e1d62 100755 --- 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 $*