From: Bryan C. Mills Date: Fri, 15 Nov 2019 14:05:41 +0000 (-0500) Subject: cmd/go: fix typo'd argument in build_trimpath.txt X-Git-Tag: go1.14beta1~194 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=5e52ca067a98d43ca3f2fc6d0f4116475dcac9ef;p=gostls13.git 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 TryBot-Result: Gobot Gobot Reviewed-by: Ian Lance Taylor --- diff --git a/src/cmd/go/testdata/script/build_trimpath.txt b/src/cmd/go/testdata/script/build_trimpath.txt index ba414372d3..121392f296 100644 --- a/src/cmd/go/testdata/script/build_trimpath.txt +++ b/src/cmd/go/testdata/script/build_trimpath.txt @@ -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'