We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6f0185b commit 5fce1d9Copy full SHA for 5fce1d9
src/runtime/crash_cgo_test.go
@@ -625,10 +625,18 @@ func TestSegv(t *testing.T) {
625
if !strings.Contains(got, want) {
626
t.Errorf("did not see %q in output", want)
627
}
628
+
629
// No runtime errors like "runtime: unknown pc".
- nowant := "runtime: "
630
- if strings.Contains(got, nowant) {
631
- t.Errorf("unexpectedly saw %q in output", want)
+ switch runtime.GOOS {
+ case "darwin", "illumos", "solaris":
632
+ // TODO(golang.org/issue/49182): Skip, runtime
633
+ // throws while attempting to generate
634
+ // traceback.
635
+ default:
636
+ nowant := "runtime: "
637
+ if strings.Contains(got, nowant) {
638
+ t.Errorf("unexpectedly saw %q in output", nowant)
639
+ }
640
641
})
642
0 commit comments