Skip to content

Commit 7bbfddb

Browse files
committed
fixed tests.
1 parent a9a4e06 commit 7bbfddb

File tree

2 files changed

+10
-3
lines changed

2 files changed

+10
-3
lines changed

src/runtime/crash_cgo_test.go

+8-2
Original file line numberDiff line numberDiff line change
@@ -713,7 +713,10 @@ func TestCgoTracebackGoroutineProfile(t *testing.T) {
713713

714714
func TestCgoTraceParser(t *testing.T) {
715715
// Test issue 29707.
716-
testenv.MustHaveCGO(t)
716+
switch runtime.GOOS {
717+
case "plan9", "windows":
718+
t.Skipf("no pthreads on %s", runtime.GOOS)
719+
}
717720
output := runTestProg(t, "testprogcgo", "CgoTraceParser")
718721
want := "OK\n"
719722
if output != want {
@@ -723,7 +726,10 @@ func TestCgoTraceParser(t *testing.T) {
723726

724727
func TestCgoTraceParserWithOneProc(t *testing.T) {
725728
// Test issue 29707.
726-
testenv.MustHaveCGO(t)
729+
switch runtime.GOOS {
730+
case "plan9", "windows":
731+
t.Skipf("no pthreads on %s", runtime.GOOS)
732+
}
727733
output := runTestProg(t, "testprogcgo", "CgoTraceParser", "GOMAXPROCS=1")
728734
want := "OK\n"
729735
if output != want {

src/runtime/testdata/testprogcgo/issue29707.go

+2-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,8 @@
22
// Use of this source code is governed by a BSD-style
33
// license that can be found in the LICENSE file.
44

5-
//go:build unix
5+
//go:build !plan9 && !windows
6+
// +build !plan9,!windows
67

78
// This is for issue #29707
89

0 commit comments

Comments
 (0)