]> Cypherpunks repositories - gostls13.git/commitdiff
runtime: disable some tests in -quick mode
authorRuss Cox <rsc@golang.org>
Wed, 15 May 2019 18:31:10 +0000 (14:31 -0400)
committerRuss Cox <rsc@golang.org>
Thu, 16 May 2019 03:25:03 +0000 (03:25 +0000)
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: Brad Fitzpatrick <bradfitz@golang.org>
Reviewed-by: Austin Clements <austin@google.com>
src/runtime/crash_unix_test.go
src/runtime/memmove_test.go
src/runtime/semasleep_test.go
src/runtime/stack_test.go

index 14f418cf97183187a24957a1cec21c5e4517c6b2..ce227feebd73737cf660faea178a1c091219bc5c 100644 (file)
@@ -34,6 +34,10 @@ func init() {
 }
 
 func TestCrashDumpsAllThreads(t *testing.T) {
+       if *flagQuick {
+               t.Skip("-quick")
+       }
+
        switch runtime.GOOS {
        case "darwin", "dragonfly", "freebsd", "linux", "netbsd", "openbsd", "illumos", "solaris":
        default:
index b490cd815f5f91f2e309a24285603ad389c7ac92..0b2e19123d350cd7dac32fb469269f3fb1c93300 100644 (file)
@@ -15,6 +15,9 @@ import (
 )
 
 func TestMemmove(t *testing.T) {
+       if *flagQuick {
+               t.Skip("-quick")
+       }
        t.Parallel()
        size := 256
        if testing.Short() {
@@ -54,6 +57,9 @@ func TestMemmove(t *testing.T) {
 }
 
 func TestMemmoveAlias(t *testing.T) {
+       if *flagQuick {
+               t.Skip("-quick")
+       }
        t.Parallel()
        size := 256
        if testing.Short() {
index 5b2cc64483f950ce6e12dee3f6c2a694f135efba..b9310956197bbde0cbfc75c16f0e61ff11e73d14 100644 (file)
@@ -21,6 +21,9 @@ import (
 // shouldn't cause semasleep to retry with the same timeout which would
 // cause indefinite spinning.
 func TestSpuriousWakeupsNeverHangSemasleep(t *testing.T) {
+       if *flagQuick {
+               t.Skip("-quick")
+       }
        testenv.MustHaveGoBuild(t)
        tempDir, err := ioutil.TempDir("", "issue-27250")
        if err != nil {
index 7bc63967bba074a7fdef175e7c64a07d86073e8e..df73b3a1d5f99c794e84306d64f63fcc22c45a5a 100644 (file)
@@ -78,6 +78,10 @@ func TestStackMem(t *testing.T) {
 
 // Test stack growing in different contexts.
 func TestStackGrowth(t *testing.T) {
+       if *flagQuick {
+               t.Skip("-quick")
+       }
+
        if GOARCH == "wasm" {
                t.Skip("fails on wasm (too slow?)")
        }