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>
This commit is contained in:
Keith Randall 2025-07-11 09:10:53 -07:00 committed by Gopher Robot
parent 88cf0c5d55
commit 4bc3373c8e

View file

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