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)
+ }
}
})
}