test_bt.sh: Check stderr for backtrace as well as stdout.

addresssanitizer likes to put backtraces on stderr.
This commit is contained in:
Nick Mathewson 2016-05-02 12:58:58 -04:00
parent fb9c9e04f0
commit b72aa18d73
2 changed files with 5 additions and 2 deletions

3
changes/bug18934 Normal file
View File

@ -0,0 +1,3 @@
o Minor features (testing):
- Let backtrace tests work correctly under AddressSanitizer.
Fixes part of bug 18934.

View File

@ -4,7 +4,7 @@
exitcode=0
"${builddir:-.}/src/test/test-bt-cl" backtraces || exit $?
"${builddir:-.}/src/test/test-bt-cl" assert | "${PYTHON:-python}" "${abs_top_srcdir:-.}/src/test/bt_test.py" || exitcode="$?"
"${builddir:-.}/src/test/test-bt-cl" crash | "${PYTHON:-python}" "${abs_top_srcdir:-.}/src/test/bt_test.py" || exitcode="$?"
"${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="$?"
exit ${exitcode}