mirror of
https://github.com/golang/go
synced 2024-09-28 23:14:38 -06:00
cmd/go: accept trailing text in compiler errors in tests
This fixes tests that were broken in CL 497716. Change-Id: I85fa8f093e04a97b7b83e2f6840f6261e08f59e0 Reviewed-on: https://go-review.googlesource.com/c/go/+/497875 TryBot-Result: Gopher Robot <gobot@golang.org> Run-TryBot: Bryan Mills <bcmills@google.com> Auto-Submit: Bryan Mills <bcmills@google.com> Reviewed-by: Carlos Amedee <carlos@golang.org>
This commit is contained in:
parent
c6fd0c22dc
commit
c7f0a8c443
@ -128,7 +128,7 @@ cd tmp
|
||||
go mod init m
|
||||
go get example.com/cmd@v1.0.0
|
||||
! go build example.com/cmd/...
|
||||
stderr 'err[/\\]err.go:3:9: undefined: DoesNotCompile$'
|
||||
stderr 'err[/\\]err.go:3:9: undefined: DoesNotCompile( .*)?$'
|
||||
cd ..
|
||||
|
||||
go install example.com/cmd/...@v1.0.0
|
||||
|
@ -7,7 +7,7 @@
|
||||
|
||||
go build example.net/need117
|
||||
! go build example.net/bad114
|
||||
stderr '^bad114[/\\]bad114.go:15:2: duplicate method Y$'
|
||||
stderr '^bad114[/\\]bad114.go:15:2: duplicate method Y( .*)?$'
|
||||
|
||||
|
||||
# With a vendor/modules.txt lacking language versions, the world is topsy-turvy,
|
||||
@ -43,7 +43,7 @@ go build example.net/need117
|
||||
|
||||
grep '^## explicit; go 1.13$' vendor/modules.txt
|
||||
! go build example.net/bad114
|
||||
stderr '^vendor[/\\]example\.net[/\\]bad114[/\\]bad114.go:15:2: duplicate method Y$'
|
||||
stderr '^vendor[/\\]example\.net[/\\]bad114[/\\]bad114.go:15:2: duplicate method Y( .+)?$'
|
||||
|
||||
-- go.mod --
|
||||
module example.net/m
|
||||
|
Loading…
Reference in New Issue
Block a user