2015-09-24 21:07:39 +02:00
|
|
|
#!/bin/sh
|
|
|
|
# Test backtrace functionality.
|
|
|
|
|
|
|
|
exitcode=0
|
|
|
|
|
2016-05-19 15:09:31 +02:00
|
|
|
export ASAN_OPTIONS="handle_segv=0:allow_user_segv_handler=1"
|
2016-02-01 20:11:45 +01:00
|
|
|
"${builddir:-.}/src/test/test-bt-cl" backtraces || exit $?
|
2016-05-02 18:58:58 +02:00
|
|
|
"${builddir:-.}/src/test/test-bt-cl" assert 2>&1 | "${PYTHON:-python}" "${abs_top_srcdir:-.}/src/test/bt_test.py" || exitcode="$?"
|
|
|
|
"${builddir:-.}/src/test/test-bt-cl" crash 2>&1 | "${PYTHON:-python}" "${abs_top_srcdir:-.}/src/test/bt_test.py" || exitcode="$?"
|
2015-09-24 21:07:39 +02:00
|
|
|
|
2016-06-20 16:31:36 +02:00
|
|
|
"${builddir:-.}/src/test/test-bt-cl" none || exitcode="$?"
|
|
|
|
|
2015-09-24 21:07:39 +02:00
|
|
|
exit ${exitcode}
|