summaryrefslogtreecommitdiff
path: root/src/test/test-install-root.c
diff options
context:
space:
mode:
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