mirror of
https://github.com/golang/go
synced 2024-09-28 17:14:29 -06:00
cmd/go: fix long test
CL 571396 introduced quotes around user-provided names in error messages. Update a test case to match the changed error message. Change-Id: I3de0ea32f363ac83dcecae164ceab74e28dea086 Reviewed-on: https://go-review.googlesource.com/c/go/+/572555 Reviewed-by: Robert Griesemer <gri@google.com> LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com> Reviewed-by: David Chase <drchase@google.com> Auto-Submit: Robert Griesemer <gri@google.com>
This commit is contained in:
parent
3c78ace24f
commit
3bd95485ad
@ -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