From: Frantisek Sumsal Date: Fri, 27 Jan 2023 14:34:36 +0000 (+0100) Subject: test: wrap delv & dig when running with sanitizers X-Git-Tag: v253-rc2~39^2 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F23956%2Fhead;p=thirdparty%2Fsystemd.git test: wrap delv & dig when running with sanitizers On Arch both delv and dig pull in libnss_resolve: ``` $ grep resolve /etc/nsswitch.conf hosts: mymachines resolve [!UNAVAIL=return] files myhostname dns ``` --- diff --git a/test/test-functions b/test/test-functions index ee44932a597..c4c192885e6 100644 --- a/test/test-functions +++ b/test/test-functions @@ -2641,8 +2641,9 @@ inst_binary() { # chown, getent, login, su, useradd, userdel - dlopen()s (not only) systemd's PAM modules # ls, stat - pulls in nss_systemd with certain options (like ls -l) when # nsswitch.conf uses [SUCCESS=merge] (like on Arch Linux) + # delv, dig - pulls in nss_resolve if `resolve` is in nsswitch.conf # tar - called by machinectl in TEST-25 - if get_bool "$IS_BUILT_WITH_ASAN" && [[ "$bin" =~ /(chown|getent|login|ls|stat|su|tar|useradd|userdel)$ ]]; then + if get_bool "$IS_BUILT_WITH_ASAN" && [[ "$bin" =~ /(chown|delv|dig|getent|login|ls|stat|su|tar|useradd|userdel)$ ]]; then wrap_binary=1 fi