From: Keith Randall Date: Thu, 20 Nov 2025 18:37:10 +0000 (-0800) Subject: runtime: disable stack allocation tests on sanitizers X-Git-Tag: go1.26rc1~221 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=8c3195973bd01da372713c4a7aac3e8e6f619ce5;p=gostls13.git 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 LUCI-TryBot-Result: Go LUCI Reviewed-by: David Chase Reviewed-by: Keith Randall --- diff --git a/src/runtime/slice_test.go b/src/runtime/slice_test.go index 5463b6c02f..376b4a58f2 100644 --- a/src/runtime/slice_test.go +++ b/src/runtime/slice_test.go @@ -6,6 +6,8 @@ package runtime_test import ( "fmt" + "internal/asan" + "internal/msan" "internal/race" "internal/testenv" "runtime" @@ -516,6 +518,9 @@ func TestAppendByteInLoop(t *testing.T) { if race.Enabled { t.Skip("skipping in -race mode") } + if asan.Enabled || msan.Enabled { + t.Skip("skipping in sanitizer mode") + } for _, test := range [][3]int{ {0, 0, 0}, {1, 1, 8}, @@ -562,6 +567,9 @@ func TestAppendPtrInLoop(t *testing.T) { if race.Enabled { t.Skip("skipping in -race mode") } + if asan.Enabled || msan.Enabled { + t.Skip("skipping in sanitizer mode") + } var tests [][3]int if runtime.PtrSize == 8 { tests = [][3]int{ @@ -628,6 +636,9 @@ func TestAppendByteCapInLoop(t *testing.T) { if race.Enabled { t.Skip("skipping in -race mode") } + if asan.Enabled || msan.Enabled { + t.Skip("skipping in sanitizer mode") + } for _, test := range [][3]int{ {0, 0, 0}, {1, 1, 8},