summaryrefslogtreecommitdiffstats
path: root/src/test/test-install-root.c
diff options
context:
space:
mode:
authorFrantisek Sumsal <frantisek@sumsal.cz>2020-04-21 20:23:33 +0200
committerFrantisek Sumsal <frantisek@sumsal.cz>2020-04-21 23:21:04 +0200
commite4ff03935c800b91e6919afef7515f318f9f697c (patch)
tree00cb680dfb86a4768ff8e02c65ebbf0abb3e0381 /src/test/test-install-root.c
parentcore: automatically add udev dependency for units using RootImage= (diff)
downloadsystemd-e4ff03935c800b91e6919afef7515f318f9f697c.tar.xz
systemd-e4ff03935c800b91e6919afef7515f318f9f697c.zip
tree-wide: formatting tweaks reported by Coccinelle
Diffstat (limited to 'src/test/test-install-root.c')
-rw-r--r--src/test/test-install-root.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/test/test-install-root.c b/src/test/test-install-root.c
index 0dabc9782e..79a105c5c3 100644
--- a/src/test/test-install-root.c
+++ b/src/test/test-install-root.c
@@ -1058,7 +1058,8 @@ static void verify_one(
r = unit_file_verify_alias(i, alias, &alias2);
log_info_errno(r, "alias %s ← %s: %d/%m (expected %d)%s%s%s",
i->name, alias, r, expected,
- alias2 ? " [" : "", alias2 ?: "", alias2 ? "]" : "");
+ alias2 ? " [" : "", strempty(alias2),
+ alias2 ? "]" : "");
assert(r == expected);
/* This is is test for "instance propagation". This propagation matters mostly for WantedBy= and