summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xrun/tests3
1 files changed, 3 insertions, 0 deletions
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 $*