]> Cypherpunks repositories - gostls13.git/commitdiff
runtime: fix flakiness on futexsleep test
authorMikio Hara <mikioh.mikioh@gmail.com>
Mon, 10 Mar 2014 03:20:16 +0000 (12:20 +0900)
committerMikio Hara <mikioh.mikioh@gmail.com>
Mon, 10 Mar 2014 03:20:16 +0000 (12:20 +0900)
Fixes #7496.

LGTM=jsing
R=golang-codereviews, jsing
CC=golang-codereviews
https://golang.org/cl/72840043

src/pkg/runtime/futex_test.go

index c70c10be2340d7d99a78deeb28a454089101243b..f57fc52b8d5185b7b23fd9d3a0ea9468805af7fa 100644 (file)
@@ -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) {