From a9bd84e03786e8bd4bfb3780ce3283b0f3e1f3bf Mon Sep 17 00:00:00 2001 From: Tim King Date: Tue, 10 Sep 2024 22:56:40 +0000 Subject: Revert "runtime: Goexit on C-created thread report more useful error message" This reverts CL 602296. Reason for revert: Failing on several builders. Change-Id: I889c566d34294032c330d4f9402300ad0d5d3bf5 Reviewed-on: https://go-review.googlesource.com/c/go/+/611919 LUCI-TryBot-Result: Go LUCI Reviewed-by: Ian Lance Taylor --- src/runtime/proc_test.go | 10 ---------- 1 file changed, 10 deletions(-) (limited to 'src/runtime/proc_test.go') diff --git a/src/runtime/proc_test.go b/src/runtime/proc_test.go index 0a54240984..a930ea707f 100644 --- a/src/runtime/proc_test.go +++ b/src/runtime/proc_test.go @@ -1158,13 +1158,3 @@ func TestBigGOMAXPROCS(t *testing.T) { t.Errorf("output:\n%s\nwanted:\nunknown function: NonexistentTest", output) } } - -func TestCgoToGoCallGoexit(t *testing.T) { - if runtime.GOOS == "plan9" || runtime.GOOS == "windows" { - t.Skipf("no pthreads on %s", runtime.GOOS) - } - 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, got %s", "runtime.Goexit called in a thread that was not created by the Go runtime", output) - } -} -- cgit v1.3-5-g9baa