From: Damien Neil Date: Thu, 20 Mar 2025 22:03:43 +0000 (-0700) Subject: runtime/race: fix reversed conditional in test for fatal map access X-Git-Tag: go1.25rc1~638 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=c558f017ef2a98fd625107d36271e184ae29c626;p=gostls13.git 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 --- 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")) {