]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
test: fix tested function name
authorYu Watanabe <watanabe.yu+github@gmail.com>
Tue, 18 Nov 2025 19:46:25 +0000 (04:46 +0900)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Wed, 19 Nov 2025 23:58:37 +0000 (08:58 +0900)
The test tests STRERROR_OR_EOF(), but logged as STRERROR_OR_ELSE.

src/test/test-errno-util.c

index 1a0154fb0594cc73d8f826a7e33c1d3555c3f23c..9eb729c2e4ba3868041f5c156fba00fa2ccb7679 100644 (file)
@@ -40,10 +40,10 @@ TEST(STRERROR) {
         ASSERT_NOT_NULL(strstr(c, buf));
 }
 
-TEST(STRERROR_OR_ELSE) {
-        log_info("STRERROR_OR_ELSE(0, \"EOF\") → %s", STRERROR_OR_EOF(0));
-        log_info("STRERROR_OR_ELSE(EPERM, \"EOF\") → %s", STRERROR_OR_EOF(EPERM));
-        log_info("STRERROR_OR_ELSE(-EPERM, \"EOF\") → %s", STRERROR_OR_EOF(-EPERM));
+TEST(STRERROR_OR_EOF) {
+        log_info("STRERROR_OR_EOF(0, \"EOF\") → %s", STRERROR_OR_EOF(0));
+        log_info("STRERROR_OR_EOF(EPERM, \"EOF\") → %s", STRERROR_OR_EOF(EPERM));
+        log_info("STRERROR_OR_EOF(-EPERM, \"EOF\") → %s", STRERROR_OR_EOF(-EPERM));
 }
 
 TEST(PROTECT_ERRNO) {