]> Cypherpunks repositories - gostls13.git/commitdiff
runtime: turn off large memmove tests under asan/msan
authorKeith Randall <khr@golang.org>
Fri, 11 Jul 2025 16:10:53 +0000 (09:10 -0700)
committerGopher Robot <gobot@golang.org>
Fri, 11 Jul 2025 16:36:52 +0000 (09:36 -0700)
Just like we do for race mode. They are just too slow when running
with the sanitizers.

Fixes #59448

Change-Id: I86e3e3488ec5c4c29e410955e9dc4cbc99d39b84
Reviewed-on: https://go-review.googlesource.com/c/go/+/687535
Reviewed-by: Keith Randall <khr@google.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Dmitri Shuralyov <dmitshur@golang.org>
Reviewed-by: Dmitri Shuralyov <dmitshur@google.com>
Reviewed-by: Cherry Mui <cherryyz@google.com>
Auto-Submit: Keith Randall <khr@golang.org>

src/runtime/memmove_test.go

index a2c3b72568c22f0bf183fc82acc0edb7fb1a3aa6..5649a20c5f4676dafc0a5fb6996fe714708c6226 100644 (file)
@@ -8,6 +8,8 @@ import (
        "crypto/rand"
        "encoding/binary"
        "fmt"
+       "internal/asan"
+       "internal/msan"
        "internal/race"
        "internal/testenv"
        . "runtime"
@@ -102,8 +104,8 @@ func TestMemmoveLarge0x180000(t *testing.T) {
        }
 
        t.Parallel()
-       if race.Enabled {
-               t.Skip("skipping large memmove test under race detector")
+       if race.Enabled || asan.Enabled || msan.Enabled {
+               t.Skip("skipping large memmove test under sanitizers")
        }
        testSize(t, 0x180000)
 }
@@ -114,8 +116,8 @@ func TestMemmoveOverlapLarge0x120000(t *testing.T) {
        }
 
        t.Parallel()
-       if race.Enabled {
-               t.Skip("skipping large memmove test under race detector")
+       if race.Enabled || asan.Enabled || msan.Enabled {
+               t.Skip("skipping large memmove test under sanitizers")
        }
        testOverlap(t, 0x120000)
 }