diff --git a/src/runtime/proc_test.go b/src/runtime/proc_test.go index 846055c3ca..0a54240984 100644 --- a/src/runtime/proc_test.go +++ b/src/runtime/proc_test.go @@ -1165,6 +1165,6 @@ func TestCgoToGoCallGoexit(t *testing.T) { } output := runTestProg(t, "testprogcgo", "CgoToGoCallGoexit") if !strings.Contains(output, "runtime.Goexit called in a thread that was not created by the Go runtime") { - t.Fatalf("output should contain %s", "runtime.Goexit called in a thread that was not created by the Go runtime") + t.Fatalf("output should contain %s, got %s", "runtime.Goexit called in a thread that was not created by the Go runtime", output) } }