aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMichael Pratt <mpratt@google.com>2021-10-27 16:07:40 -0400
committerMichael Pratt <mpratt@google.com>2021-10-28 16:54:29 +0000
commit5fce1d96137e1079c393c94febfac49d1e2979b0 (patch)
treee88a820a104b43e12218557c059a5ebda33e2615 /src
parent6f0185bf38a679f468b6a4209f15188a11662eb5 (diff)
downloadgo-5fce1d96137e1079c393c94febfac49d1e2979b0.tar.xz
runtime: disable TestSegv panic check on darwin, illumos, solaris
CL 339990 made this test more strict, exposing pre-existing issues on these OSes. Skip for now until they can be resolved. Updates #49182 Change-Id: I3ac400dcd21b801bf4ab4eeb630e23b5c66ba563 Reviewed-on: https://go-review.googlesource.com/c/go/+/359254 Trust: Michael Pratt <mpratt@google.com> Run-TryBot: Michael Pratt <mpratt@google.com> Reviewed-by: Cherry Mui <cherryyz@google.com> Reviewed-by: Bryan C. Mills <bcmills@google.com> TryBot-Result: Go Bot <gobot@golang.org>
Diffstat (limited to 'src')
-rw-r--r--src/runtime/crash_cgo_test.go14
1 files changed, 11 insertions, 3 deletions
diff --git a/src/runtime/crash_cgo_test.go b/src/runtime/crash_cgo_test.go
index 0ccfe8580a..8485b6a1a5 100644
--- a/src/runtime/crash_cgo_test.go
+++ b/src/runtime/crash_cgo_test.go
@@ -625,10 +625,18 @@ func TestSegv(t *testing.T) {
if !strings.Contains(got, want) {
t.Errorf("did not see %q in output", want)
}
+
// No runtime errors like "runtime: unknown pc".
- nowant := "runtime: "
- if strings.Contains(got, nowant) {
- t.Errorf("unexpectedly saw %q in output", want)
+ switch runtime.GOOS {
+ case "darwin", "illumos", "solaris":
+ // TODO(golang.org/issue/49182): Skip, runtime
+ // throws while attempting to generate
+ // traceback.
+ default:
+ nowant := "runtime: "
+ if strings.Contains(got, nowant) {
+ t.Errorf("unexpectedly saw %q in output", nowant)
+ }
}
})
}