Skip to content

Commit

Permalink
tests: Print backtrace to logs if corefile is found
Browse files Browse the repository at this point in the history
This speeds up iterating on fixing code.
  • Loading branch information
wmanley committed Jul 1, 2020
1 parent b57c3b0 commit cac8de5
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions tests/libtest.sh
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ trap run_exit_cmds EXIT
save_core() {
if [ -e core ]; then
cp core "$test_srcdir/core"
gdb -batch -ex bt "$test_builddir/../.libs/ostree" core
fi
}
libtest_exit_cmds+=(save_core)
Expand Down

0 comments on commit cac8de5

Please sign in to comment.