diff options
| author | Keith Randall <khr@golang.org> | 2025-07-11 09:10:53 -0700 |
|---|---|---|
| committer | Gopher Robot <gobot@golang.org> | 2025-07-11 09:36:52 -0700 |
| commit | 4bc3373c8e2cad24a779698477704306548949cb (patch) | |
| tree | cc51249ff8c68921dd319cea84af4167cff2452f | |
| parent | 88cf0c5d55a8c18da515485f4a3fcf008b96cb07 (diff) | |
| download | go-4bc3373c8e2cad24a779698477704306548949cb.tar.xz | |
runtime: turn off large memmove tests under asan/msan
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>
| -rw-r--r-- | src/runtime/memmove_test.go | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/src/runtime/memmove_test.go b/src/runtime/memmove_test.go index a2c3b72568..5649a20c5f 100644 --- a/src/runtime/memmove_test.go +++ b/src/runtime/memmove_test.go @@ -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) } |
