Skip to content

Commit

Permalink
cmd/go: fix typo'd argument in build_trimpath.txt
Browse files Browse the repository at this point in the history
Fixes #35617

Change-Id: I514f4e5f80ba9866c5cad3eb1fecd6f346c82f14
Reviewed-on: https://go-review.googlesource.com/c/go/+/207340
Run-TryBot: Bryan C. Mills <[email protected]>
TryBot-Result: Gobot Gobot <[email protected]>
Reviewed-by: Ian Lance Taylor <[email protected]>
  • Loading branch information
Bryan C. Mills committed Nov 15, 2019
1 parent d183253 commit 5e52ca0
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/cmd/go/testdata/script/build_trimpath.txt
Original file line number Diff line number Diff line change
Expand Up @@ -41,12 +41,12 @@ stdout 'binary contains GOROOT: false'
env GO111MODULE=off # The current released gccgo does not support builds in module mode.
cd $GOPATH/src/a
go build -compiler=gccgo -o $WORK/gccgo-paths-a.exe .
exec $WORK/gccgo-paths-a.exe $WORK/gccgo-paths-b.exe
exec $WORK/gccgo-paths-a.exe $WORK/gccgo-paths-a.exe
stdout 'binary contains GOPATH: true'
stdout 'binary contains GOROOT: true'
stdout 'binary contains GOROOT: false' # gccgo doesn't load std from GOROOT.

# A binary built with gccgo with -trimpath should not contain GOPATH or GOROOT.
go build -compiler=gccgo -trimpath -o $WORK/gccgo-paths-a.exe .
go build -compiler=gccgo -trimpath -o $WORK/gccgo-paths-b.exe .
exec $WORK/gccgo-paths-a.exe $WORK/gccgo-paths-b.exe
stdout 'binary contains GOPATH: false'
stdout 'binary contains GOROOT: false'
Expand Down

0 comments on commit 5e52ca0

Please sign in to comment.