]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
test: wrap delv & dig when running with sanitizers 23956/head
authorFrantisek Sumsal <frantisek@sumsal.cz>
Fri, 27 Jan 2023 14:34:36 +0000 (15:34 +0100)
committerFrantisek Sumsal <frantisek@sumsal.cz>
Fri, 27 Jan 2023 15:40:52 +0000 (16:40 +0100)
On Arch both delv and dig pull in libnss_resolve:

```
$ grep resolve /etc/nsswitch.conf
hosts: mymachines resolve [!UNAVAIL=return] files myhostname dns
```

test/test-functions

index ee44932a5975fed3b179401148ff4dffbc1de30f..c4c192885e649a981ef88853e77d6f30e03509a3 100644 (file)
@@ -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