Skip to content

Commit ebe3b9f

Browse files
committed
split test.
1 parent a995d1e commit ebe3b9f

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

src/runtime/crash_cgo_test.go

+10-1
Original file line numberDiff line numberDiff line change
@@ -722,7 +722,16 @@ func TestCgoTraceParser(t *testing.T) {
722722
if output != want {
723723
t.Fatalf("want %s, got %s\n", want, output)
724724
}
725-
output = runTestProg(t, "testprogcgo", "CgoTraceParser", "GOMAXPROCS=1")
725+
}
726+
727+
func TestCgoTraceParserWithOneProc(t *testing.T) {
728+
// Test issue 29707.
729+
switch runtime.GOOS {
730+
case "windows", "plan9":
731+
t.Skipf("skipping cgo trace parser test on %s", runtime.GOOS)
732+
}
733+
output := runTestProg(t, "testprogcgo", "CgoTraceParser", "GOMAXPROCS=1")
734+
want := "OK\n"
726735
if output != want {
727736
t.Fatalf("GOMAXPROCS=1, want %s, got %s\n", want, output)
728737
}

0 commit comments

Comments
 (0)