mirror of
https://github.com/golang/go.git
synced 2025-12-08 06:10:04 +00:00
runtime: disable stack allocation tests on sanitizers
CL 707755 broke the asan/msan builders. Change-Id: Ic9738140999a9bcfc94cecfe0964a5f1bc243c56 Reviewed-on: https://go-review.googlesource.com/c/go/+/722480 Auto-Submit: Keith Randall <khr@golang.org> LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com> Reviewed-by: David Chase <drchase@google.com> Reviewed-by: Keith Randall <khr@google.com>
This commit is contained in:
parent
ff654ea100
commit
8c3195973b
1 changed files with 11 additions and 0 deletions
|
|
@ -6,6 +6,8 @@ package runtime_test
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"fmt"
|
"fmt"
|
||||||
|
"internal/asan"
|
||||||
|
"internal/msan"
|
||||||
"internal/race"
|
"internal/race"
|
||||||
"internal/testenv"
|
"internal/testenv"
|
||||||
"runtime"
|
"runtime"
|
||||||
|
|
@ -516,6 +518,9 @@ func TestAppendByteInLoop(t *testing.T) {
|
||||||
if race.Enabled {
|
if race.Enabled {
|
||||||
t.Skip("skipping in -race mode")
|
t.Skip("skipping in -race mode")
|
||||||
}
|
}
|
||||||
|
if asan.Enabled || msan.Enabled {
|
||||||
|
t.Skip("skipping in sanitizer mode")
|
||||||
|
}
|
||||||
for _, test := range [][3]int{
|
for _, test := range [][3]int{
|
||||||
{0, 0, 0},
|
{0, 0, 0},
|
||||||
{1, 1, 8},
|
{1, 1, 8},
|
||||||
|
|
@ -562,6 +567,9 @@ func TestAppendPtrInLoop(t *testing.T) {
|
||||||
if race.Enabled {
|
if race.Enabled {
|
||||||
t.Skip("skipping in -race mode")
|
t.Skip("skipping in -race mode")
|
||||||
}
|
}
|
||||||
|
if asan.Enabled || msan.Enabled {
|
||||||
|
t.Skip("skipping in sanitizer mode")
|
||||||
|
}
|
||||||
var tests [][3]int
|
var tests [][3]int
|
||||||
if runtime.PtrSize == 8 {
|
if runtime.PtrSize == 8 {
|
||||||
tests = [][3]int{
|
tests = [][3]int{
|
||||||
|
|
@ -628,6 +636,9 @@ func TestAppendByteCapInLoop(t *testing.T) {
|
||||||
if race.Enabled {
|
if race.Enabled {
|
||||||
t.Skip("skipping in -race mode")
|
t.Skip("skipping in -race mode")
|
||||||
}
|
}
|
||||||
|
if asan.Enabled || msan.Enabled {
|
||||||
|
t.Skip("skipping in sanitizer mode")
|
||||||
|
}
|
||||||
for _, test := range [][3]int{
|
for _, test := range [][3]int{
|
||||||
{0, 0, 0},
|
{0, 0, 0},
|
||||||
{1, 1, 8},
|
{1, 1, 8},
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue