]> Cypherpunks repositories - gostls13.git/commitdiff
cmd/compile: mark a few more tests as parallel
authorJosh Bleecher Snyder <josharian@gmail.com>
Mon, 13 May 2019 19:29:58 +0000 (12:29 -0700)
committerJosh Bleecher Snyder <josharian@gmail.com>
Mon, 13 May 2019 20:36:21 +0000 (20:36 +0000)
Reduces the time on my machine for

go clean -cache; go test -short -count=1 cmd/compile/internal/gc

from 4.7s to 3.7s.

Updates #26473

Change-Id: I9f9573675ffd6519da63961f48f61260ae4717fd
Reviewed-on: https://go-review.googlesource.com/c/go/+/176937
Run-TryBot: Josh Bleecher Snyder <josharian@gmail.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
src/cmd/compile/internal/gc/builtin_test.go
src/cmd/compile/internal/gc/global_test.go
src/cmd/compile/internal/gc/scope_test.go

index 31b078525c5c478a5c76c14e312a15df2bbb172d..57f24b2287978d23773ce506088bbe49c8be4d6a 100644 (file)
@@ -14,6 +14,7 @@ import (
 
 func TestBuiltin(t *testing.T) {
        testenv.MustHaveGoRun(t)
+       t.Parallel()
 
        old, err := ioutil.ReadFile("builtin.go")
        if err != nil {
index 56855d797a194d506b57e40c2836ad050efbcf9f..edad6d042a36d824cea6e0da40c3ad8aa643697e 100644 (file)
@@ -19,6 +19,7 @@ import (
 // fmt.scanf routines. See issue 6853.
 func TestScanfRemoval(t *testing.T) {
        testenv.MustHaveGoBuild(t)
+       t.Parallel()
 
        // Make a directory to work in.
        dir, err := ioutil.TempDir("", "issue6853a-")
@@ -66,6 +67,7 @@ func main() {
 // Make sure -S prints assembly code. See issue 14515.
 func TestDashS(t *testing.T) {
        testenv.MustHaveGoBuild(t)
+       t.Parallel()
 
        // Make a directory to work in.
        dir, err := ioutil.TempDir("", "issue14515-")
index e327dc02af2df236e93d5c3eafe54aff21b10ac1..d3af61824d3f8776d0c4519f0ebd5509b4c939f2 100644 (file)
@@ -207,6 +207,7 @@ const detailOutput = false
 // corresponds to what we expect it to be.
 func TestScopeRanges(t *testing.T) {
        testenv.MustHaveGoBuild(t)
+       t.Parallel()
 
        if runtime.GOOS == "plan9" {
                t.Skip("skipping on plan9; no DWARF symbol table in executables")
@@ -445,6 +446,7 @@ func gobuild(t *testing.T, dir string, optimized bool, testfile []testline) (str
 // See issue #23928.
 func TestEmptyDwarfRanges(t *testing.T) {
        testenv.MustHaveGoRun(t)
+       t.Parallel()
 
        if runtime.GOOS == "plan9" {
                t.Skip("skipping on plan9; no DWARF symbol table in executables")