From: Ian Lance Taylor Date: Wed, 14 Jun 2017 17:17:29 +0000 (-0700) Subject: runtime: don't run TestCgoNumGoroutine on Windows or Plan 9 X-Git-Tag: go1.9beta1~11 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=03a4a5c98885245a99d67b684acacff4f7b2326e;p=gostls13.git runtime: don't run TestCgoNumGoroutine on Windows or Plan 9 The test requires pthreads. Fixes #20666. Change-Id: Icb2400250a80cdad6680cd1ef6c18ef7343d5e29 Reviewed-on: https://go-review.googlesource.com/45701 Run-TryBot: Ian Lance Taylor Reviewed-by: Brad Fitzpatrick TryBot-Result: Gobot Gobot --- diff --git a/src/runtime/crash_cgo_test.go b/src/runtime/crash_cgo_test.go index 70f1c1d16e..c102608748 100644 --- a/src/runtime/crash_cgo_test.go +++ b/src/runtime/crash_cgo_test.go @@ -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" diff --git a/src/runtime/testdata/testprogcgo/numgoroutine.go b/src/runtime/testdata/testprogcgo/numgoroutine.go index c1ac3eff8a..12fda49a13 100644 --- a/src/runtime/testdata/testprogcgo/numgoroutine.go +++ b/src/runtime/testdata/testprogcgo/numgoroutine.go @@ -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 /*