mirror of
https://github.com/golang/go.git
synced 2026-04-04 02:10:08 +09:00
test: skip TestScanAllocIssue77573 with asan mode
In ASAN mode, extra memory allocations alter the object size and impact the scansize computation. Skip this test when ASAN is enabled. Fixes #77857. Fixes #77858. Fixes #77859. Change-Id: I21027ff20c411a0fda7a50446b2202871baa2262 Reviewed-on: https://go-review.googlesource.com/c/go/+/750140 Reviewed-by: Keith Randall <khr@golang.org> Auto-Submit: Keith Randall <khr@golang.org> Reviewed-by: David Chase <drchase@google.com> Reviewed-by: Keith Randall <khr@google.com> LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
This commit is contained in:
@@ -854,6 +854,9 @@ func TestMkmalloc(t *testing.T) {
|
||||
}
|
||||
|
||||
func TestScanAllocIssue77573(t *testing.T) {
|
||||
if asan.Enabled {
|
||||
t.Skip("extra allocations with -asan causes this to fail")
|
||||
}
|
||||
verifyScanAlloc := func(t *testing.T, f func(), expectSize uintptr) {
|
||||
runtime.Acquirem()
|
||||
defer runtime.Releasem()
|
||||
|
||||
Reference in New Issue
Block a user