From: Greg Hudson Date: Sat, 3 Aug 2019 17:30:28 +0000 (-0400) Subject: Skip URI tests when using asan X-Git-Tag: krb5-1.18-beta1~82 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=dbcec74b277952adf6e49d087932d2d0ea5393d1;p=thirdparty%2Fkrb5.git Skip URI tests when using asan resolve_wrapper uses RTLD_DEEPBIND to load libresolv, triggering a failure in the asan runtime. --- diff --git a/src/lib/krb5/os/Makefile.in b/src/lib/krb5/os/Makefile.in index 91b0486b85..f523a5ac86 100644 --- a/src/lib/krb5/os/Makefile.in +++ b/src/lib/krb5/os/Makefile.in @@ -232,12 +232,16 @@ check-unix-locate: t_locate_kdc echo 'Skipped t_locate_kdc test: OFFLINE' >> $(SKIPTESTS); \ fi +ASAN = @ASAN@ check-unix-uri: t_locate_kdc - if [ $(HAVE_RESOLV_WRAPPER) = 1 ]; then \ - $(RUNPYTEST) $(srcdir)/t_discover_uri.py $(PYTESTFLAGS); \ - else \ + if [ $(HAVE_RESOLV_WRAPPER) = 0 ]; then \ echo '*** WARNING: skipped t_discover_uri.py due to not using resolv_wrapper'; \ echo 'Skipped URI discovery tests: resolv_wrapper 1.1.5 not found' >> $(SKIPTESTS); \ + elif [ $(ASAN) = yes ]; then \ + echo '*** Skipping URI discovery tests: resolv_wrapper is incompatible with asan'; \ + echo 'Skipped URI discovery tests: incompatible with asan' >> $(SKIPTESTS); \ + else \ + $(RUNPYTEST) $(srcdir)/t_discover_uri.py $(PYTESTFLAGS); \ fi check-unix-trace: t_trace