]> Cypherpunks repositories - gostls13.git/commit
runtime/coverage: fix problematic test from issue 59563
authorThan McIntosh <thanm@google.com>
Wed, 3 May 2023 17:40:02 +0000 (13:40 -0400)
committerGopher Robot <gobot@golang.org>
Wed, 3 May 2023 20:32:34 +0000 (20:32 +0000)
commit91a716a043f01334e7e6d28af4863d2188ffb336
tree63e5bb373c6de0074ab8d95d0744af97c37509a4
parent1f90bf1adc18da52c6df978f9d896f1ab2f62567
runtime/coverage: fix problematic test from issue 59563

Fix up the coverage testpoint TestIssue59563TruncatedCoverPkgAll
to avoid spurious failures due to racy behavior. Specifically,
we are only interested in verifying coverage for the larger
function of the two in the test package (the smaller one is only
there to trigger additional function registrations while the
test is finalizing the cov data).

Updates #59867.
Updates #59563.

Change-Id: Ibfbbcbf68e0ad7a4d9606cbcfc69d140375c7b87
Reviewed-on: https://go-review.googlesource.com/c/go/+/492175
Run-TryBot: Than McIntosh <thanm@google.com>
Auto-Submit: Than McIntosh <thanm@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: David Chase <drchase@google.com>
Reviewed-by: Cherry Mui <cherryyz@google.com>
src/runtime/coverage/emitdata_test.go