From e066dc93c857ba109a6ed70ff9d7a6d4fc50d55a Mon Sep 17 00:00:00 2001 From: Colin Walters Date: Thu, 21 Sep 2017 16:59:28 -0400 Subject: [PATCH] tests: Skip running introspection tests if built with ASAN This is the rpm-ostree equivalent of Unfortunately, introspection uses `dlopen(), which doesn't quite work when the DSO is compiled with ASAN but the outer executable isn't. Prep for syncing PAPR config with ostree. Closes: #1000 Approved by: jlebon --- Makefile-tests.am | 2 +- tests/check/test-basic.sh | 27 ++++++++++++++++----------- tests/common/libtest.sh | 13 +++++++++++++ 3 files changed, 30 insertions(+), 12 deletions(-) diff --git a/Makefile-tests.am b/Makefile-tests.am index 9ccb0019..6d7b40a3 100644 --- a/Makefile-tests.am +++ b/Makefile-tests.am @@ -15,7 +15,7 @@ AM_TESTS_ENVIRONMENT += \ GI_TYPELIB_PATH=$$(cd $(top_builddir) && pwd)$${GI_TYPELIB_PATH:+:$$GI_TYPELIB_PATH} \ $(NULL) if BUILDOPT_ASAN -AM_TESTS_ENVIRONMENT += ASAN_OPTIONS=detect_leaks=false +AM_TESTS_ENVIRONMENT += BUILDOPT_ASAN=yes ASAN_OPTIONS=detect_leaks=false endif testbin_cppflags = $(AM_CPPFLAGS) -I $(srcdir)/src/libpriv -I $(srcdir)/libglnx -I $(srcdir)/tests/common diff --git a/tests/check/test-basic.sh b/tests/check/test-basic.sh index c1684568..645c2583 100755 --- a/tests/check/test-basic.sh +++ b/tests/check/test-basic.sh @@ -202,7 +202,8 @@ fi assert_file_has_content err.txt 'Unknown.*command' echo "ok error on unknown command" -cat >test-rpmostree-gi-arch <test-rpmostree-gi-arch <test-rpmostree-gi <test-rpmostree-gi <