0
0
mirror of https://gitlab.torproject.org/tpo/core/tor.git synced 2024-09-20 20:23:03 +02:00

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.
This commit is contained in:
teor 2018-10-23 11:21:10 +10:00
parent 5b28190c67
commit 939657771c
No known key found for this signature in database
GPG Key ID: 10FEAA0E7075672A
2 changed files with 12 additions and 4 deletions

6
changes/bug27948 Normal file
View File

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

View File

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