]> Cypherpunks.ru repositories - gostls13.git/commit
runtime: fix TestAbort on non-x86 arches
authorAustin Clements <austin@google.com>
Sun, 8 Jul 2018 04:21:27 +0000 (00:21 -0400)
committerAustin Clements <austin@google.com>
Sun, 8 Jul 2018 19:25:13 +0000 (19:25 +0000)
commit5cb1b1773fba1e1503493eea5c4ffa49fc5b5f08
tree640d23796103553d713fe07ade2667835542de95
parentb001ffb864ce5486c6edbe98202d3e0687313ce2
runtime: fix TestAbort on non-x86 arches

CL 122515 tightened TestAbort to look for breakpoint exceptions and
not just general signal crashes, but this only applies on x86 arches.
On non-x86 arches we use a nil pointer dereference to abort, so the
test is now failing.

This CL re-loosens TestAbort on non-x86 arches to only expect a signal
traceback.

Should fix the build on linux/arm, linux/arm64, linux/ppc64, and
linux/s390x.

Change-Id: I1065341180ab5ab4da63b406c641dcde93c9490b
Reviewed-on: https://go-review.googlesource.com/122580
Run-TryBot: Austin Clements <austin@google.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
src/runtime/crash_test.go