Browse Source

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

addresssanitizer likes to put backtraces on stderr.
Nick Mathewson 8 years ago
parent
commit
b72aa18d73
2 changed files with 5 additions and 2 deletions
  1. 3 0
      changes/bug18934
  2. 2 2
      src/test/test_bt.sh

+ 3 - 0
changes/bug18934

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

+ 2 - 2
src/test/test_bt.sh

@@ -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}