]> Cypherpunks repositories - gostls13.git/commit
cmd/internal/obj/x86: avoid os.Chdir in issue19518_test.go
authorBryan C. Mills <bcmills@google.com>
Tue, 12 Mar 2019 18:41:09 +0000 (14:41 -0400)
committerBryan C. Mills <bcmills@google.com>
Tue, 12 Mar 2019 18:55:20 +0000 (18:55 +0000)
commit49448badb6367835b43aeb9cda3af44ff191bda7
tree7630233217f4c50f5f1b86eae3273f40dac5a24a
parenta083648165a7facfeca6f37c023b4b069585acb0
cmd/internal/obj/x86: avoid os.Chdir in issue19518_test.go

Chdir leaves the test in the wrong working directory if objdumpOutput
calls t.Fatalf (or panics), and it isn't necessary here anyway. Set
the Dir field on the commands instead.

Change-Id: I9f0eb0d4f8d15043f1e13472126ca1a1ce4b7cb3
Reviewed-on: https://go-review.googlesource.com/c/go/+/167081
Run-TryBot: Bryan C. Mills <bcmills@google.com>
Reviewed-by: Jay Conrod <jayconrod@google.com>
src/cmd/internal/obj/x86/issue19518_test.go