From: Mikio Hara Date: Mon, 10 Mar 2014 03:20:16 +0000 (+0900) Subject: runtime: fix flakiness on futexsleep test X-Git-Tag: go1.3beta1~411 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=4888781f2485e276938867c5d9fe6f5d0477520b;p=gostls13.git runtime: fix flakiness on futexsleep test Fixes #7496. LGTM=jsing R=golang-codereviews, jsing CC=golang-codereviews https://golang.org/cl/72840043 --- diff --git a/src/pkg/runtime/futex_test.go b/src/pkg/runtime/futex_test.go index c70c10be23..f57fc52b8d 100644 --- a/src/pkg/runtime/futex_test.go +++ b/src/pkg/runtime/futex_test.go @@ -35,6 +35,12 @@ const ( ) func TestFutexsleep(t *testing.T) { + if runtime.GOMAXPROCS(0) > 1 { + // futexsleep doesn't handle EINTR or other signals, + // so spurious wakeups may happen. + t.Skip("skipping; GOMAXPROCS>1") + } + start := time.Now() for _, tt := range futexsleepTests { go func(tt futexsleepTest) {