]> Cypherpunks repositories - gostls13.git/commitdiff
cmd/go: fix TestIssue7573 for absolute paths in -L options
authorIan Lance Taylor <iant@golang.org>
Tue, 13 Jun 2017 21:17:00 +0000 (14:17 -0700)
committerIan Lance Taylor <iant@golang.org>
Tue, 13 Jun 2017 23:59:33 +0000 (23:59 +0000)
Updates #20266.
Fixes #20664.

Change-Id: Ifca30409fc7971497efb6d84f3f98760157c2233
Reviewed-on: https://go-review.googlesource.com/45650
Reviewed-by: Austin Clements <austin@google.com>
src/cmd/go/go_test.go

index 205a1b14e2df8b76f2ff209b52e288d3364cc264..a59da8bc903c8cad07058bb2398f3e79ff701f4c 100644 (file)
@@ -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) {