[libxml2] Disable LeakSanitizer when running API tests
- From: Nick Wellnhofer <nwellnhof src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libxml2] Disable LeakSanitizer when running API tests
- Date: Thu, 1 Jun 2017 13:02:18 +0000 (UTC)
commit ac9a4560ee85b18811ff8ab7791ddfff7b144b0a
Author: Nick Wellnhofer <wellnhofer aevum de>
Date: Wed May 31 19:06:30 2017 +0200
Disable LeakSanitizer when running API tests
The autogenerated API tests leak memory.
Makefile.am | 9 +++++++--
1 files changed, 7 insertions(+), 2 deletions(-)
---
diff --git a/Makefile.am b/Makefile.am
index 1c64cee..6fc8ffa 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -205,7 +205,12 @@ runxmlconf_LDADD= $(LDADDS)
runtests:
[ -d test ] || $(LN_S) $(srcdir)/test .
[ -d result ] || $(LN_S) $(srcdir)/result .
- $(CHECKER) ./runtest$(EXEEXT) && $(CHECKER) ./testrecurse$(EXEEXT) &&$(CHECKER) ./testapi$(EXEEXT) &&
$(CHECKER) ./testchar$(EXEEXT)&& $(CHECKER) ./testdict$(EXEEXT) && $(CHECKER) ./runxmlconf$(EXEEXT)
+ $(CHECKER) ./runtest$(EXEEXT) && \
+ $(CHECKER) ./testrecurse$(EXEEXT) && \
+ ASAN_OPTIONS="$$ASAN_OPTIONS:detect_leaks=0" $(CHECKER) ./testapi$(EXEEXT) && \
+ $(CHECKER) ./testchar$(EXEEXT) && \
+ $(CHECKER) ./testdict$(EXEEXT) && \
+ $(CHECKER) ./runxmlconf$(EXEEXT)
@(if [ "$(PYTHON_SUBDIR)" != "" ] ; then cd python ; \
$(MAKE) tests ; fi)
@@ -229,7 +234,7 @@ tests: XMLtests XMLenttests NStests IDtests Errtests APItests $(READER_TEST) $(T
APItests: testapi$(EXEEXT)
@echo "## Running the API regression tests this may take a little while"
- -@($(CHECKER) $(top_builddir)/testapi -q)
+ -@(ASAN_OPTIONS="$$ASAN_OPTIONS:detect_leaks=0" $(CHECKER) $(top_builddir)/testapi -q)
HTMLtests : testHTML$(EXEEXT)
@(echo > .memdump)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]