summaryrefslogtreecommitdiff
path: root/src/test/test-string-util.c
diff options
context:
space:
mode:
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2022-05-25 15:58:02 +0200
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2022-05-25 16:02:25 +0200
commitf90ee9ff6638ff5125d2aafe066fd5cc8e46932f (patch)
treec6766320945e191df1cc1f42769f2bcdf5d3a185 /src/test/test-string-util.c
parentc20b2f2421011a2c29fa04cc1955ed67b87daeb2 (diff)
downloadsystemd-f90ee9ff6638ff5125d2aafe066fd5cc8e46932f.tar.gz
basic: add helper function to print </==/>
Diffstat (limited to 'src/test/test-string-util.c')
-rw-r--r--src/test/test-string-util.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/test/test-string-util.c b/src/test/test-string-util.c
index 1054f9ea31..902d431d9a 100644
--- a/src/test/test-string-util.c
+++ b/src/test/test-string-util.c
@@ -835,7 +835,7 @@ static void test_strverscmp_improved_one(const char* a, const char *b, int expec
log_info("'%s' %s '%s'%s",
strnull(a),
- r > 0 ? ">" : r < 0 ? "<" : "==",
+ comparison_operator(r),
strnull(b),
r == expected ? "" : " !!!!!!!!!!!!!");
assert_se(r == expected);