]> Cypherpunks repositories - gostls13.git/commitdiff
runtime/race: fix reversed conditional in test for fatal map access
authorDamien Neil <dneil@google.com>
Thu, 20 Mar 2025 22:03:43 +0000 (15:03 -0700)
committerDamien Neil <dneil@google.com>
Fri, 21 Mar 2025 03:47:05 +0000 (20:47 -0700)
Change-Id: Icc4d90355d8af07fdec852b2adf720f7cfd1edd6
Reviewed-on: https://go-review.googlesource.com/c/go/+/659735
Reviewed-by: Ian Lance Taylor <iant@google.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>

src/runtime/race/race_test.go

index 1c8bc949bfed7b8980290090eb143a7512f32fa1..9e651edd246bdd024ff3ee7fae2096b355eb6c5c 100644 (file)
@@ -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")) {