mirror of
https://github.com/golang/go.git
synced 2025-10-19 19:13:18 +00:00
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:
parent
88cf0c5d55
commit
4bc3373c8e
1 changed files with 6 additions and 4 deletions
|
@ -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)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue