]> Cypherpunks repositories - gostls13.git/commitdiff
context: skip allocs test with -asan
authorDamien Neil <dneil@google.com>
Tue, 4 Mar 2025 23:39:42 +0000 (15:39 -0800)
committerGopher Robot <gobot@golang.org>
Wed, 5 Mar 2025 00:37:03 +0000 (16:37 -0800)
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>
src/context/x_test.go

index ab3c2757cf5834de0f9b78c502af9f55222dbe30..82a8c45c54968102cba414153a570067390934f8 100644 (file)
@@ -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