Skip to content

Commit 4ec4a79

Browse files
committed
cmd/go: accept smart quotes when checking for missing gold in TestNoteReading
Fixes #39157 Change-Id: Ia983f5e66698519cd19c1565cfb80e86d08fdfc6 Reviewed-on: https://go-review.googlesource.com/c/go/+/234380 Reviewed-by: Ian Lance Taylor <iant@golang.org>
1 parent 1361738 commit 4ec4a79

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/cmd/go/note_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ func TestNoteReading(t *testing.T) {
5353
// we've had trouble reading the notes generated by gold.
5454
err := tg.doRun([]string{"build", "-ldflags", "-buildid=" + buildID + " -linkmode=external -extldflags=-fuse-ld=gold", "-o", tg.path("hello3.exe"), tg.path("hello.go")})
5555
if err != nil {
56-
if tg.grepCountBoth("(invalid linker|gold|cannot find 'ld')") > 0 {
56+
if tg.grepCountBoth("(invalid linker|gold|cannot find [‘']ld[’'])") > 0 {
5757
// It's not an error if gold isn't there. gcc claims it "cannot find 'ld'" if
5858
// ld.gold is missing, see issue #22340.
5959
t.Log("skipping gold test")

0 commit comments

Comments
 (0)