mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-11 21:53:48 +01:00
16 lines
529 B
Bash
Executable File
16 lines
529 B
Bash
Executable File
#!/bin/sh
|
|
# Test backtrace functionality.
|
|
|
|
exitcode=0
|
|
|
|
ulimit -c 0
|
|
|
|
export ASAN_OPTIONS="handle_segv=0:allow_user_segv_handler=1"
|
|
"${builddir:-.}/src/test/test-bt-cl" backtraces || exit $?
|
|
"${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="$?"
|
|
|
|
"${builddir:-.}/src/test/test-bt-cl" none || exitcode="$?"
|
|
|
|
exit ${exitcode}
|