Skip to content

Commit

Permalink
cmd/go: fix TestScript/vet_asm for OS without amd64
Browse files Browse the repository at this point in the history
Add GOOS=linux to vet_asm script to avoid errors on OS not working on
amd64 architecture.

Change-Id: Ic3db43618008ae8e8bc08738c95c200dd4e916d7
Reviewed-on: https://go-review.googlesource.com/c/149577
Reviewed-by: Alan Donovan <[email protected]>
Run-TryBot: Alan Donovan <[email protected]>
TryBot-Result: Gobot Gobot <[email protected]>
  • Loading branch information
Clément Chigot authored and adonovan committed Nov 14, 2018
1 parent 6d620fc commit 0a72e8e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/cmd/go/testdata/script/vet_asm.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# Issue 27665. Verify that "go vet" analyzes non-Go files.

env GOOS=linux
env GOARCH=amd64
! go vet -asmdecl a
stderr 'f: invalid MOVW of x'
Expand Down

0 comments on commit 0a72e8e

Please sign in to comment.