]> Cypherpunks repositories - gostls13.git/commitdiff
cmd/objdump: mark tests as parallel
authorJosh Bleecher Snyder <josharian@gmail.com>
Mon, 13 May 2019 18:59:27 +0000 (11:59 -0700)
committerJosh Bleecher Snyder <josharian@gmail.com>
Mon, 13 May 2019 19:28:06 +0000 (19:28 +0000)
Speeds up

go test -short -count=1 cmd/objdump

on my machine from 1.7s to 1.3s.

Not much, but as the backpacking saying goes,
take care of the ounces and the pounds will take care of themselves.

Updates #26473

Change-Id: I59fe9a179e48537c7d82cbba72cde9f92b42a029
Reviewed-on: https://go-review.googlesource.com/c/go/+/176901
Run-TryBot: Josh Bleecher Snyder <josharian@gmail.com>
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>

src/cmd/objdump/objdump_test.go

index 0ac1d16fe3e1547c89052fbf0f5bd8899ea53e19..8d73c016c603a95f6a95ab3f9de0b25744d53b8a 100644 (file)
@@ -87,6 +87,7 @@ var target = flag.String("target", "", "test disassembly of `goos/goarch` binary
 // can handle that one.
 
 func testDisasm(t *testing.T, printCode bool, flags ...string) {
+       t.Parallel()
        goarch := runtime.GOARCH
        if *target != "" {
                f := strings.Split(*target, "/")