]> Cypherpunks repositories - gostls13.git/commit
cmd/cover: fix buglet causing differences in -m output
authorThan McIntosh <thanm@google.com>
Fri, 28 Oct 2022 17:46:32 +0000 (13:46 -0400)
committerThan McIntosh <thanm@google.com>
Tue, 1 Nov 2022 14:12:36 +0000 (14:12 +0000)
commit02cffcde177bf3fbb36e75d749d0cb338b4f7566
tree55572f25dfd1563ab20f58f7aa07b9face32587c
parent99dc2a1859f15fafc5950ad7ef6026dfbde826c6
cmd/cover: fix buglet causing differences in -m output

Use a slightly different line number pragma when emitting instrumented
code, so as to ensure that we don't get any changes in the
"-gcflags=-m" output for coverage vs non-coverage.

Fixes #56475.

Change-Id: I3079171fdf83c0434ed6ea0ce3eb2797c2280c55
Reviewed-on: https://go-review.googlesource.com/c/go/+/446259
TryBot-Result: Gopher Robot <gobot@golang.org>
Run-TryBot: Than McIntosh <thanm@google.com>
Reviewed-by: Cherry Mui <cherryyz@google.com>
src/cmd/cover/cover.go
src/cmd/go/testdata/script/cover_error.txt