Commit 018d9b42 authored by Russ Cox's avatar Russ Cox

runtime: disable some tests in -quick mode

Speeds up the "go test runtime -cpu=1,2,4 -short -quick" phase of all.bash.

For #26473.

Change-Id: I090f5a5aa754462b3253a2156dc31fa67ce7af2a
Reviewed-on: https://go-review.googlesource.com/c/go/+/177399
Run-TryBot: Russ Cox <rsc@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: default avatarBrad Fitzpatrick <bradfitz@golang.org>
Reviewed-by: default avatarAustin Clements <austin@google.com>
parent dccd5da0
...@@ -34,6 +34,10 @@ func init() { ...@@ -34,6 +34,10 @@ func init() {
} }
func TestCrashDumpsAllThreads(t *testing.T) { func TestCrashDumpsAllThreads(t *testing.T) {
if *flagQuick {
t.Skip("-quick")
}
switch runtime.GOOS { switch runtime.GOOS {
case "darwin", "dragonfly", "freebsd", "linux", "netbsd", "openbsd", "illumos", "solaris": case "darwin", "dragonfly", "freebsd", "linux", "netbsd", "openbsd", "illumos", "solaris":
default: default:
......
...@@ -15,6 +15,9 @@ import ( ...@@ -15,6 +15,9 @@ import (
) )
func TestMemmove(t *testing.T) { func TestMemmove(t *testing.T) {
if *flagQuick {
t.Skip("-quick")
}
t.Parallel() t.Parallel()
size := 256 size := 256
if testing.Short() { if testing.Short() {
...@@ -54,6 +57,9 @@ func TestMemmove(t *testing.T) { ...@@ -54,6 +57,9 @@ func TestMemmove(t *testing.T) {
} }
func TestMemmoveAlias(t *testing.T) { func TestMemmoveAlias(t *testing.T) {
if *flagQuick {
t.Skip("-quick")
}
t.Parallel() t.Parallel()
size := 256 size := 256
if testing.Short() { if testing.Short() {
......
...@@ -21,6 +21,9 @@ import ( ...@@ -21,6 +21,9 @@ import (
// shouldn't cause semasleep to retry with the same timeout which would // shouldn't cause semasleep to retry with the same timeout which would
// cause indefinite spinning. // cause indefinite spinning.
func TestSpuriousWakeupsNeverHangSemasleep(t *testing.T) { func TestSpuriousWakeupsNeverHangSemasleep(t *testing.T) {
if *flagQuick {
t.Skip("-quick")
}
testenv.MustHaveGoBuild(t) testenv.MustHaveGoBuild(t)
tempDir, err := ioutil.TempDir("", "issue-27250") tempDir, err := ioutil.TempDir("", "issue-27250")
if err != nil { if err != nil {
......
...@@ -78,6 +78,10 @@ func TestStackMem(t *testing.T) { ...@@ -78,6 +78,10 @@ func TestStackMem(t *testing.T) {
// Test stack growing in different contexts. // Test stack growing in different contexts.
func TestStackGrowth(t *testing.T) { func TestStackGrowth(t *testing.T) {
if *flagQuick {
t.Skip("-quick")
}
if GOARCH == "wasm" { if GOARCH == "wasm" {
t.Skip("fails on wasm (too slow?)") t.Skip("fails on wasm (too slow?)")
} }
......
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