]> Cypherpunks repositories - gostls13.git/commitdiff
cmd/go: fix typo'd argument in build_trimpath.txt
authorBryan C. Mills <bcmills@google.com>
Fri, 15 Nov 2019 14:05:41 +0000 (09:05 -0500)
committerBryan C. Mills <bcmills@google.com>
Fri, 15 Nov 2019 15:23:09 +0000 (15:23 +0000)
Fixes #35617

Change-Id: I514f4e5f80ba9866c5cad3eb1fecd6f346c82f14
Reviewed-on: https://go-review.googlesource.com/c/go/+/207340
Run-TryBot: Bryan C. Mills <bcmills@google.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Ian Lance Taylor <iant@golang.org>
src/cmd/go/testdata/script/build_trimpath.txt

index ba414372d347abe986b262c9cc067ad764b02e6d..121392f2968a7e1bdb89203d24c77b0a8b701fe5 100644 (file)
@@ -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'