mirror of
https://github.com/golang/go
synced 2024-11-18 11:44:45 -07:00
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 <austin@google.com>
This commit is contained in:
parent
fcb45b9c61
commit
297c188107
@ -2447,7 +2447,7 @@ import "C"
|
|||||||
func main() { C.f() }`)
|
func main() { C.f() }`)
|
||||||
tg.setenv("GOPATH", tg.path("."))
|
tg.setenv("GOPATH", tg.path("."))
|
||||||
tg.run("build", "-n", "-compiler", "gccgo", "cgoref")
|
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) {
|
func TestListTemplateContextFunction(t *testing.T) {
|
||||||
|
Loading…
Reference in New Issue
Block a user