Put ASAN_OPTIONS in the right place.

This commit is contained in:
Nicholas Marriott
2026-07-02 23:18:50 +01:00
parent 351bef58a3
commit abcf8dca3a
2 changed files with 2 additions and 2 deletions

View File

@@ -70,10 +70,10 @@ jobs:
run: |
sh autogen.sh
./configure ${{ matrix.configure }}
export ASAN_OPTIONS="abort_on_error=1:detect_leaks=0"
${{ matrix.make }} -j"$(getconf _NPROCESSORS_ONLN)"
- name: test
run: |
cd regress
export ASAN_OPTIONS="abort_on_error=1:detect_leaks=0"
${{ matrix.make }}

View File

@@ -8,7 +8,7 @@ all:
for test in $(TESTS); do \
printf '%-40s ' "$$test"; \
start=$$(date +%s); \
if sh "$$test" >/dev/null 2>&1; then \
if env -i ASAN_OPTIONS="$$ASAN_OPTIONS" sh "$$test" >/dev/null 2>&1; then \
end=$$(date +%s); \
echo "PASS ($$((end - start))s)"; \
else \