]> Cypherpunks repositories - gostls13.git/commitdiff
runtime: do not run TestCgoSignalDeadlock on windows in short mode
authorDmitriy Vyukov <dvyukov@google.com>
Wed, 7 Aug 2013 20:04:28 +0000 (00:04 +0400)
committerDmitriy Vyukov <dvyukov@google.com>
Wed, 7 Aug 2013 20:04:28 +0000 (00:04 +0400)
The test takes up to 64 seconds on windows builders.
I've tried to reduce number of iterations in the test,
but it does not affect run time.
Fixes #6054.

R=golang-dev, alex.brainman
CC=golang-dev
https://golang.org/cl/12531043

src/pkg/runtime/crash_cgo_test.go

index 8ccea8f37c002c6641daca2811a97e5dd3a7c4ed..d61de4469facd512097df09b7a506d01d04ab827 100644 (file)
@@ -7,6 +7,7 @@
 package runtime_test
 
 import (
+       "runtime"
        "testing"
 )
 
@@ -15,6 +16,9 @@ func TestCgoCrashHandler(t *testing.T) {
 }
 
 func TestCgoSignalDeadlock(t *testing.T) {
+       if testing.Short() && runtime.GOOS == "windows" {
+               t.Skip("Skipping in short mode") // takes up to 64 seconds
+       }
        got := executeTest(t, cgoSignalDeadlockSource, nil)
        want := "OK\n"
        if got != want {