diff --git a/src/runtime/testdata/testprogcgo/sigfwd.go b/src/runtime/testdata/testprogcgo/sigfwd.go index b66616db36e..f6a0c031d73 100644 --- a/src/runtime/testdata/testprogcgo/sigfwd.go +++ b/src/runtime/testdata/testprogcgo/sigfwd.go @@ -61,7 +61,7 @@ var nilPtr *byte func f() (ret bool) { defer func() { if recover() == nil { - fmt.Errorf("ERROR: couldn't raise SIGSEGV in Go.") + fmt.Fprintf(os.Stderr, "ERROR: couldn't raise SIGSEGV in Go\n") C.exit(2) } ret = true