From 4888781f2485e276938867c5d9fe6f5d0477520b Mon Sep 17 00:00:00 2001 From: Mikio Hara Date: Mon, 10 Mar 2014 12:20:16 +0900 Subject: [PATCH] runtime: fix flakiness on futexsleep test Fixes #7496. LGTM=jsing R=golang-codereviews, jsing CC=golang-codereviews https://golang.org/cl/72840043 --- src/pkg/runtime/futex_test.go | 6 ++++++ 1 file changed, 6 insertions(+) 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) { -- 2.48.1