1
0
mirror of https://github.com/golang/go synced 2024-09-24 23:20:12 -06:00

cmd/go: don't assume case-insensitivity in TestScript/gcflags_patterns

For #30432

Change-Id: I84f208705483018559b425b3669e724e7d5627ee
Reviewed-on: https://go-review.googlesource.com/c/go/+/361814
Trust: Bryan C. Mills <bcmills@google.com>
Run-TryBot: Bryan C. Mills <bcmills@google.com>
TryBot-Result: Go Bot <gobot@golang.org>
Reviewed-by: Ian Lance Taylor <iant@golang.org>
This commit is contained in:
Bryan C. Mills 2021-11-05 15:38:57 -04:00
parent c353f1b41d
commit 7be227ccd0

View File

@ -58,8 +58,7 @@ go build -n -ldflags=-X=math.pi=3
stderr 'link.* -X=math.pi=3' stderr 'link.* -X=math.pi=3'
# -ldflags applies to current directory even if GOPATH is funny # -ldflags applies to current directory even if GOPATH is funny
[windows] cd $WORK/GoPath/src/my/cmd/prog [!case-sensitive] cd $WORK/GoPath/src/my/cmd/prog
[darwin] cd $WORK/GoPath/src/my/cmd/prog
go build -n -ldflags=-X=math.pi=3 go build -n -ldflags=-X=math.pi=3
stderr 'link.* -X=math.pi=3' stderr 'link.* -X=math.pi=3'