aboutsummaryrefslogtreecommitdiff
path: root/src/runtime
diff options
context:
space:
mode:
Diffstat (limited to 'src/runtime')
-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)
+ }
}
})
}