Skip to content

Commit 7a64b3f

Browse files
markjdbbapt
authored andcommitted
tests: Don't set detect_leaks on FreeBSD
It's not implemented by the ASAN runtime on FreeBSD and configuring it causes a message to that effect to be printed, causing all tests to fail due to unexpected output on stderr.
1 parent bc63748 commit 7a64b3f

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

Makefile.autosetup

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,9 @@ all: Kyuafile Makefile
3030
check: UndefinedBehaviour.suppress Leak.suppress
3131
export UBSAN_OPTIONS=print_stacktrace=1:halt_on_error=1:suppressions=$(top_builddir)/UndefinedBehaviour.suppress; \
3232
export LSAN_OPTIONS=print_suppressions=0:suppressions=$(top_builddir)/Leak.suppress; \
33-
export ASAN_OPTIONS=detect_leaks=1; \
33+
if [ "$$(uname)" != "FreeBSD" ]; then \
34+
export ASAN_OPTIONS=detect_leaks=1 ; \
35+
fi ; \
3436
export LLVM_PROFILE_FILE=/tmp/pkg.%p.profraw; \
3537
if [ "$(HTML)" != "" ]; then \
3638
args="-r $(top_builddir)/res.db" ; \

0 commit comments

Comments
 (0)