From: Ian Lance Taylor Date: Tue, 13 Jun 2017 21:17:00 +0000 (-0700) Subject: cmd/go: fix TestIssue7573 for absolute paths in -L options X-Git-Tag: go1.9beta1~26 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=297c1881071eb2da788e2e20467ff2a436ec6f99;p=gostls13.git cmd/go: fix TestIssue7573 for absolute paths in -L options Updates #20266. Fixes #20664. Change-Id: Ifca30409fc7971497efb6d84f3f98760157c2233 Reviewed-on: https://go-review.googlesource.com/45650 Reviewed-by: Austin Clements --- diff --git a/src/cmd/go/go_test.go b/src/cmd/go/go_test.go index 205a1b14e2..a59da8bc90 100644 --- a/src/cmd/go/go_test.go +++ b/src/cmd/go/go_test.go @@ -2447,7 +2447,7 @@ import "C" func main() { C.f() }`) tg.setenv("GOPATH", tg.path(".")) tg.run("build", "-n", "-compiler", "gccgo", "cgoref") - tg.grepStderr(`gccgo.*\-L alibpath \-lalib`, `no Go-inline "#cgo LDFLAGS:" ("-L alibpath -lalib") passed to gccgo linking stage`) + tg.grepStderr(`gccgo.*\-L [^ ]*alibpath \-lalib`, `no Go-inline "#cgo LDFLAGS:" ("-L alibpath -lalib") passed to gccgo linking stage`) } func TestListTemplateContextFunction(t *testing.T) {