mirror of
https://github.com/golang/go
synced 2024-11-23 17:40:03 -07:00
cmd/go: fix cgo-disabled test failure from CL 77151
Change-Id: I8ed4c6dd32a74d94565d77771bb773f006ff90ac Reviewed-on: https://go-review.googlesource.com/78317 Run-TryBot: Russ Cox <rsc@golang.org> Reviewed-by: Russ Cox <rsc@golang.org>
This commit is contained in:
parent
ba2835db6c
commit
8e28a8d2a0
@ -2440,7 +2440,9 @@ func TestCoverageErrorLine(t *testing.T) {
|
||||
|
||||
tg.runFail("test", "coverbad")
|
||||
tg.grepStderr(`coverbad[\\/]p\.go:4`, "did not find coverbad/p.go:4")
|
||||
tg.grepStderr(`coverbad[\\/]p1\.go:6`, "did not find coverbad/p1.go:6")
|
||||
if canCgo {
|
||||
tg.grepStderr(`coverbad[\\/]p1\.go:6`, "did not find coverbad/p1.go:6")
|
||||
}
|
||||
tg.grepStderrNot(regexp.QuoteMeta(tg.tempdir), "found temporary directory in error")
|
||||
stderr := tg.getStderr()
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user