Skip to content

Commit 77ef79e

Browse files
committed
Makefile: disable asan leak check
As of go 1.25, the asan build checks for leaks at program exit by default. We expect leaks since we store some of our allocated buffers into pools (and use finalizers that are not guaranteed to run before exit). Fixes #5303
1 parent c27a208 commit 77ef79e

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

Makefile

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@ all:
2121
@echo " make generate"
2222
@echo " make generate-test-data"
2323
@echo " make clean"
24-
2524
override testflags :=
2625
.PHONY: test
2726
test:
@@ -35,10 +34,13 @@ testcoverage:
3534
testrace: testflags += -race -timeout 20m
3635
testrace: test
3736

37+
.PHONY: testasan
3838
testasan: testflags += -asan -timeout 20m
3939
testasan: TAGS += slowbuild
40-
testasan: test
40+
testasan:
41+
ASAN_OPTIONS=detect_leaks=0 ${GO} test -tags '$(TAGS)' ${testflags} -run ${TESTS} ${PKG}
4142

43+
.PHONY: testmsan
4244
testmsan: export CC=clang
4345
testmsan: testflags += -msan -timeout 20m
4446
testmsan: TAGS += slowbuild

0 commit comments

Comments
 (0)