summaryrefslogtreecommitdiffstats
path: root/test/test-functions
diff options
context:
space:
mode:
authorFrantisek Sumsal <frantisek@sumsal.cz>2023-03-16 11:42:12 +0100
committerLuca Boccassi <luca.boccassi@gmail.com>2023-03-16 13:56:40 +0100
commite912bef85d4d5a47b474a66555200cbee094f865 (patch)
tree10670a2a68a015216e2e5aab8669c39bda9c2514 /test/test-functions
parentdoc: update ELF_PACKAGE_METADATA to use linker flag instead of manual script (diff)
downloadsystemd-e912bef85d4d5a47b474a66555200cbee094f865.tar.xz
systemd-e912bef85d4d5a47b474a66555200cbee094f865.zip
test: wrap mkfs.*/mksquashfs/mkswap binaries when running w/ ASan
Diffstat (limited to '')
-rw-r--r--test/test-functions12
1 files changed, 7 insertions, 5 deletions
diff --git a/test/test-functions b/test/test-functions
index 252aea57a1..820cb93e95 100644
--- a/test/test-functions
+++ b/test/test-functions
@@ -2638,12 +2638,14 @@ inst_binary() {
# Same as above, but we need to wrap certain libraries unconditionally
#
- # 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
+ # chown, getent, login, su, useradd, userdel - dlopen() (not only) systemd's PAM modules
+ # ls, mkfs.*, mksquashfs, mkswap, stat
+ # - pull in nss_systemd with certain options (like ls -l) when
+ # nsswitch.conf uses [SUCCESS=merge] (like on Arch Linux)
+ # delv, dig - pull 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|delv|dig|getent|login|ls|stat|su|tar|useradd|userdel)$ ]]; then
+ bin_rx='/(chown|delv|dig|getent|login|ls|mkfs\.[a-z0-9]+|mksquashfs|mkswap|stat|su|tar|useradd|userdel)$'
+ if get_bool "$IS_BUILT_WITH_ASAN" && [[ "$bin" =~ $bin_rx ]]; then
wrap_binary=1
fi