Commit 1590abef authored by Dmitriy Vyukov's avatar Dmitriy Vyukov

runtime: do not run TestCgoSignalDeadlock on windows in short mode

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
parent 73c93a40
...@@ -7,6 +7,7 @@ ...@@ -7,6 +7,7 @@
package runtime_test package runtime_test
import ( import (
"runtime"
"testing" "testing"
) )
...@@ -15,6 +16,9 @@ func TestCgoCrashHandler(t *testing.T) { ...@@ -15,6 +16,9 @@ func TestCgoCrashHandler(t *testing.T) {
} }
func TestCgoSignalDeadlock(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) got := executeTest(t, cgoSignalDeadlockSource, nil)
want := "OK\n" want := "OK\n"
if got != want { if got != want {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment