Skip to content

Commit

Permalink
cmd/objdump: mark tests as parallel
Browse files Browse the repository at this point in the history
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 <[email protected]>
Reviewed-by: Brad Fitzpatrick <[email protected]>
TryBot-Result: Gobot Gobot <[email protected]>
  • Loading branch information
josharian committed May 13, 2019
1 parent 3def99a commit ed7a92b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/cmd/objdump/objdump_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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, "/")
Expand Down

0 comments on commit ed7a92b

Please sign in to comment.