From e0d66aadb2a7d4e724a3b50ff377c30f3b90965c Mon Sep 17 00:00:00 2001 From: Nikos Mavrogiannopoulos Date: Mon, 9 Jan 2017 08:46:01 +0100 Subject: tests: do not run key-tests and cert-tests under leak sanitizer The reason is that we cannot distinguish between a memory leak on application failure (which is followed by exit- thus should be ignored) and an address sanitizer issue (which should never be ignored). As such we disable leak detection with asan and rely on valgrind. Signed-off-by: Nikos Mavrogiannopoulos --- tests/cert-tests/Makefile.am | 1 + tests/key-tests/Makefile.am | 1 + 2 files changed, 2 insertions(+) diff --git a/tests/cert-tests/Makefile.am b/tests/cert-tests/Makefile.am index 6092513449..cd326c3b2f 100644 --- a/tests/cert-tests/Makefile.am +++ b/tests/cert-tests/Makefile.am @@ -49,6 +49,7 @@ TESTS += dane endif TESTS_ENVIRONMENT = EXEEXT=$(EXEEXT) \ + ASAN_OPTIONS="detect_leaks=0:exitcode=6" \ LC_ALL="C" \ VALGRIND="$(VALGRIND)" \ LIBTOOL="$(LIBTOOL)" \ diff --git a/tests/key-tests/Makefile.am b/tests/key-tests/Makefile.am index 96359ba640..041c133e2b 100644 --- a/tests/key-tests/Makefile.am +++ b/tests/key-tests/Makefile.am @@ -29,6 +29,7 @@ dist_check_SCRIPTS = key-id pkcs8 pkcs8-invalid TESTS = key-id pkcs8 pkcs8-invalid TESTS_ENVIRONMENT = EXEEXT=$(EXEEXT) \ + ASAN_OPTIONS="detect_leaks=0:exitcode=6" \ LC_ALL="C" \ top_builddir="$(top_builddir)" \ srcdir="$(srcdir)" -- cgit v1.2.1