From 77c1f7b21d369433ae7fd7669e454d48b8ac2c0e Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Thu, 28 Jul 2016 13:18:25 +0100 Subject: [PATCH] Add new --backtrace option to tests script. --- run/tests | 3 +++ 1 file changed, 3 insertions(+) diff --git a/run/tests b/run/tests index 714733bcf..77db5d52b 100755 --- a/run/tests +++ b/run/tests @@ -7,6 +7,9 @@ export DCPOMATIC_LINUX_SHARE_PREFIX=`pwd` if [ "$1" == "--debug" ]; then shift; gdb --args build/test/unit-tests --catch_system_errors=no $* +elif [ "$1" == "--backtrace" ]; then + shift; + gdb -batch -ex "run" -ex "thread apply all bt" --args build/test/unit-tests --catch_system_errors=no $* elif [ "$1" == "--valgrind" ]; then shift; valgrind --tool="memcheck" --leak-check=full build/test/unit-tests $* -- 2.30.2