]> git.ipfire.org Git - thirdparty/krb5.git/commitdiff
Skip URI tests when using asan
authorGreg Hudson <ghudson@mit.edu>
Sat, 3 Aug 2019 17:30:28 +0000 (13:30 -0400)
committerGreg Hudson <ghudson@mit.edu>
Tue, 6 Aug 2019 01:18:34 +0000 (21:18 -0400)
resolve_wrapper uses RTLD_DEEPBIND to load libresolv, triggering a
failure in the asan runtime.

src/lib/krb5/os/Makefile.in

index 91b0486b85d39f564bb175496109d8db5ce330ed..f523a5ac86012694410a42fdcf38d4323d66f90f 100644 (file)
@@ -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