Skip to content

Commit 5e52ca0

Browse files
author
Bryan C. Mills
committed
cmd/go: fix typo'd argument in build_trimpath.txt
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]>
1 parent d183253 commit 5e52ca0

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/cmd/go/testdata/script/build_trimpath.txt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -41,12 +41,12 @@ stdout 'binary contains GOROOT: false'
4141
env GO111MODULE=off # The current released gccgo does not support builds in module mode.
4242
cd $GOPATH/src/a
4343
go build -compiler=gccgo -o $WORK/gccgo-paths-a.exe .
44-
exec $WORK/gccgo-paths-a.exe $WORK/gccgo-paths-b.exe
44+
exec $WORK/gccgo-paths-a.exe $WORK/gccgo-paths-a.exe
4545
stdout 'binary contains GOPATH: true'
46-
stdout 'binary contains GOROOT: true'
46+
stdout 'binary contains GOROOT: false' # gccgo doesn't load std from GOROOT.
4747

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

0 commit comments

Comments
 (0)