summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorteor <teor@torproject.org>2018-10-23 11:21:10 +1000
committerteor <teor@torproject.org>2018-10-23 11:21:10 +1000
commit939657771c7d2832fcedf51c0b250841d907e07f (patch)
tree0dc4dd5560b65d046f81f4a7cb519a542350780b
parent5b28190c67ac6828e588c0ec54fe88eab0fb45fb (diff)
downloadtor-939657771c7d2832fcedf51c0b250841d907e07f.tar.gz
tor-939657771c7d2832fcedf51c0b250841d907e07f.zip
Treat backtrace test failures as expected on most BSD-derived systems
Treat backtrace test failures as expected on NetBSD, OpenBSD, and macOS/Darwin, until we solve bug 17808. (FreeBSD failures have been treated as expected since 18204 in 0.2.8.) Fixes bug 27948; bugfix on 0.2.5.2-alpha.
-rw-r--r--changes/bug279486
-rwxr-xr-xsrc/test/bt_test.py10
2 files changed, 12 insertions, 4 deletions
diff --git a/changes/bug27948 b/changes/bug27948
new file mode 100644
index 0000000000..fea16f3d0f
--- /dev/null
+++ b/changes/bug27948
@@ -0,0 +1,6 @@
+ o Minor bugfixes (tests):
+ - Treat backtrace test failures as expected on BSD-derived systems
+ (NetBSD, OpenBSD, and macOS/Darwin) until we solve bug 17808.
+ (FreeBSD failures have been treated as expected since 18204 in 0.2.8.)
+ Fixes bug 27948; bugfix on 0.2.5.2-alpha.
+
diff --git a/src/test/bt_test.py b/src/test/bt_test.py
index 30591453b9..a1efca00fb 100755
--- a/src/test/bt_test.py
+++ b/src/test/bt_test.py
@@ -44,10 +44,12 @@ print("BAD")
for l in LINES:
print("{}".format(l), end="")
-if sys.platform.startswith('freebsd'):
- # See bug #17808 if you know how to fix this.
- print("Test failed; but FreeBSD is known to have backtrace problems.\n"
- "Treating as 'SKIP'.")
+if (sys.platform.startswith('freebsd') or sys.platform.startswith('netbsd') or
+ sys.platform.startswith('openbsd') or sys.platform.startswith('darwin')):
+ # See bug #17808 if you know how to fix backtraces on BSD-derived systems
+ print("Test failed; but {} is known to have backtrace problems."
+ .format(sys.platform))
+ print("Treating as 'SKIP'.")
sys.exit(77)
sys.exit(1)