From: Carl Hetherington Date: Thu, 28 Jul 2016 12:18:25 +0000 (+0100) Subject: Add new --backtrace option to tests script. X-Git-Tag: v2.9.7~2 X-Git-Url: https://git.carlh.net/gitweb/?p=dcpomatic.git;a=commitdiff_plain;h=77c1f7b21d369433ae7fd7669e454d48b8ac2c0e Add new --backtrace option to tests script. --- 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 $*