From: Robert Griesemer Date: Mon, 18 Mar 2024 20:43:04 +0000 (-0700) Subject: cmd/go: fix long test X-Git-Tag: go1.23rc1~846 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=3bd95485ad64fa4d1c3732ad3b8bcb142841dbb7;p=gostls13.git 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 LUCI-TryBot-Result: Go LUCI Reviewed-by: David Chase Auto-Submit: Robert Griesemer --- diff --git a/src/cmd/go/testdata/script/mod_vendor_goversion.txt b/src/cmd/go/testdata/script/mod_vendor_goversion.txt index 38975c8a2b..18cd030fcd 100644 --- a/src/cmd/go/testdata/script/mod_vendor_goversion.txt +++ b/src/cmd/go/testdata/script/mod_vendor_goversion.txt @@ -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