]> Cypherpunks repositories - gostls13.git/commit
runtime/race: detect when TestRace fails to run all tests, skip failures
authorDamien Neil <dneil@google.com>
Tue, 18 Mar 2025 17:22:04 +0000 (10:22 -0700)
committerGopher Robot <gobot@golang.org>
Wed, 19 Mar 2025 17:21:06 +0000 (10:21 -0700)
commitf9f5d1e8442e3268489f3cfab2f9b65922bd4b5b
tree5c7321afe1a7e1209ee96365427fee4afa49d257
parent011b7ce8d12c14e9bd9b95a2519a6513a407bfc9
runtime/race: detect when TestRace fails to run all tests, skip failures

TestRace runs a collection of tests, some of which are expected
to fail with data races. Make TestRace more robust at detecting
when the test run is cut short, such as when a test causes
an unhandled panic.

Skip TestRaceRangeFuncIterator, which contains an unhandled panic.
This test was causing all subsequent tests to not run.

Skip TestNoRaceRangeFuncIterator, which contains an unexpected data race.
This test was not running due to the above failure.

For #72925

Change-Id: Id662375cc498ea25ae308619709768588bf6a2f0
Reviewed-on: https://go-review.googlesource.com/c/go/+/658875
Reviewed-by: Ian Lance Taylor <iant@google.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Auto-Submit: Damien Neil <dneil@google.com>
src/runtime/race/race_test.go
src/runtime/race/testdata/main_test.go [new file with mode: 0644]
src/runtime/race/testdata/rangefunc_test.go