Skip to content

Commit 5d98330

Browse files
committed
cmd/compile: mark a few more tests as parallel
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 <[email protected]> TryBot-Result: Gobot Gobot <[email protected]> Reviewed-by: Brad Fitzpatrick <[email protected]>
1 parent f68244e commit 5d98330

File tree

3 files changed

+5
-0
lines changed

3 files changed

+5
-0
lines changed

src/cmd/compile/internal/gc/builtin_test.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ import (
1414

1515
func TestBuiltin(t *testing.T) {
1616
testenv.MustHaveGoRun(t)
17+
t.Parallel()
1718

1819
old, err := ioutil.ReadFile("builtin.go")
1920
if err != nil {

src/cmd/compile/internal/gc/global_test.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ import (
1919
// fmt.scanf routines. See issue 6853.
2020
func TestScanfRemoval(t *testing.T) {
2121
testenv.MustHaveGoBuild(t)
22+
t.Parallel()
2223

2324
// Make a directory to work in.
2425
dir, err := ioutil.TempDir("", "issue6853a-")
@@ -66,6 +67,7 @@ func main() {
6667
// Make sure -S prints assembly code. See issue 14515.
6768
func TestDashS(t *testing.T) {
6869
testenv.MustHaveGoBuild(t)
70+
t.Parallel()
6971

7072
// Make a directory to work in.
7173
dir, err := ioutil.TempDir("", "issue14515-")

src/cmd/compile/internal/gc/scope_test.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -207,6 +207,7 @@ const detailOutput = false
207207
// corresponds to what we expect it to be.
208208
func TestScopeRanges(t *testing.T) {
209209
testenv.MustHaveGoBuild(t)
210+
t.Parallel()
210211

211212
if runtime.GOOS == "plan9" {
212213
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
445446
// See issue #23928.
446447
func TestEmptyDwarfRanges(t *testing.T) {
447448
testenv.MustHaveGoRun(t)
449+
t.Parallel()
448450

449451
if runtime.GOOS == "plan9" {
450452
t.Skip("skipping on plan9; no DWARF symbol table in executables")

0 commit comments

Comments
 (0)