]> Cypherpunks repositories - gostls13.git/commitdiff
runtime: don't run TestCgoNumGoroutine on Windows or Plan 9
authorIan Lance Taylor <iant@golang.org>
Wed, 14 Jun 2017 17:17:29 +0000 (10:17 -0700)
committerIan Lance Taylor <iant@golang.org>
Wed, 14 Jun 2017 17:28:02 +0000 (17:28 +0000)
The test requires pthreads.

Fixes #20666.

Change-Id: Icb2400250a80cdad6680cd1ef6c18ef7343d5e29
Reviewed-on: https://go-review.googlesource.com/45701
Run-TryBot: Ian Lance Taylor <iant@golang.org>
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>

src/runtime/crash_cgo_test.go
src/runtime/testdata/testprogcgo/numgoroutine.go

index 70f1c1d16e925c089c5095781efc2497b82fc767..c102608748826cfab1df8867780b0ebd0760dc73 100644 (file)
@@ -397,6 +397,10 @@ func TestRaceSignal(t *testing.T) {
 }
 
 func TestCgoNumGoroutine(t *testing.T) {
+       switch runtime.GOOS {
+       case "windows", "plan9":
+               t.Skipf("skipping numgoroutine test on %s", runtime.GOOS)
+       }
        t.Parallel()
        got := runTestProg(t, "testprogcgo", "NumGoroutine")
        want := "OK\n"
index c1ac3eff8a0b15faae10945ebbdf647f632c506f..12fda49a1316c4fae98fcdb9bc64f557e3903233 100644 (file)
@@ -2,6 +2,8 @@
 // Use of this source code is governed by a BSD-style
 // license that can be found in the LICENSE file.
 
+// +build !plan9,!windows
+
 package main
 
 /*