diff options
| author | Damien Neil <dneil@google.com> | 2025-03-04 15:39:42 -0800 |
|---|---|---|
| committer | Gopher Robot <gobot@golang.org> | 2025-03-04 16:37:03 -0800 |
| commit | a1889554fc3e0c15b4a9870b49bf3a0252f80688 (patch) | |
| tree | 8608ebd60d32e0a987aca03d93300d3a70587d42 /src/context | |
| parent | 3705a6f1f0a66e70916bb09f50f4fcd1c520df53 (diff) | |
| download | go-a1889554fc3e0c15b4a9870b49bf3a0252f80688.tar.xz | |
context: skip allocs test with -asan
Allocates more with -asan after CL 653795.
Change-Id: Ib8cc1de1d649623713b6fc123c1c59a47528857b
Reviewed-on: https://go-review.googlesource.com/c/go/+/654876
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Auto-Submit: Damien Neil <dneil@google.com>
Reviewed-by: Cherry Mui <cherryyz@google.com>
Diffstat (limited to 'src/context')
| -rw-r--r-- | src/context/x_test.go | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/context/x_test.go b/src/context/x_test.go index ab3c2757cf..82a8c45c54 100644 --- a/src/context/x_test.go +++ b/src/context/x_test.go @@ -8,6 +8,7 @@ import ( . "context" "errors" "fmt" + "internal/asan" "math/rand" "runtime" "strings" @@ -264,6 +265,9 @@ func TestValues(t *testing.T) { } func TestAllocs(t *testing.T) { + if asan.Enabled { + t.Skip("test allocates more with -asan") + } bg := Background() for _, test := range []struct { desc string |
