Skip to content

Commit 3e393e0

Browse files
committed
Update asan environment to better show errors
1 parent a8e91fb commit 3e393e0

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

tox.ini

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,10 @@ commands =
2323
[testenv:asan]
2424
setenv=
2525
PYTHONDEVMODE=1
26+
PYTHONUNBUFFERED=1
2627
PYTHONMALLOC=malloc
27-
CFLAGS=-lasan -fsanitize=address -fno-omit-frame-pointer
28+
CFLAGS=-lasan -fsanitize=address -fno-omit-frame-pointer -Og -g
29+
ASAN_OPTIONS=log_path=asan_errors
2830
allowlist_externals=bash
2931
commands=
3032
bash -c 'export LD_PRELOAD=$(gcc -print-file-name=libasan.so) && printenv LD_PRELOAD && python -c "from zlib_ng import zlib_ng" && pytest tests'

0 commit comments

Comments
 (0)