projects
/
dcpomatic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
312c7b4
)
Catch system errors while doing backtraces.
author
Carl Hetherington
<cth@carlh.net>
Sun, 15 Oct 2017 23:55:07 +0000
(
00:55
+0100)
committer
Carl Hetherington
<cth@carlh.net>
Sun, 15 Oct 2017 23:55:07 +0000
(
00:55
+0100)
run/tests
patch
|
blob
|
history
diff --git
a/run/tests
b/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 --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 $*
elif [ "$1" == "--valgrind" ]; then
shift;
valgrind --tool="memcheck" --leak-check=full build/test/unit-tests $*