From c558f017ef2a98fd625107d36271e184ae29c626 Mon Sep 17 00:00:00 2001 From: Damien Neil Date: Thu, 20 Mar 2025 15:03:43 -0700 Subject: [PATCH] runtime/race: fix reversed conditional in test for fatal map access Change-Id: Icc4d90355d8af07fdec852b2adf720f7cfd1edd6 Reviewed-on: https://go-review.googlesource.com/c/go/+/659735 Reviewed-by: Ian Lance Taylor LUCI-TryBot-Result: Go LUCI --- src/runtime/race/race_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/runtime/race/race_test.go b/src/runtime/race/race_test.go index 1c8bc949bf..9e651edd24 100644 --- a/src/runtime/race/race_test.go +++ b/src/runtime/race/race_test.go @@ -193,7 +193,7 @@ func runTests(t *testing.T) ([]byte, error) { // A crash in the map concurrent access detector will cause other tests not to run. // Perhaps we should run tests with concurrent map access separately to avoid this, // but for the moment just skip the remaining tests. - if mapFatals == 0 { + if mapFatals != 0 { return out, nil } if !bytes.Contains(out, []byte("ALL TESTS COMPLETE")) { -- 2.51.0