From: Yu Watanabe Date: Tue, 18 Nov 2025 19:46:25 +0000 (+0900) Subject: test: fix tested function name X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=18f280a478ae85307b4597f7ccd588c860edf42c;p=thirdparty%2Fsystemd.git test: fix tested function name The test tests STRERROR_OR_EOF(), but logged as STRERROR_OR_ELSE. --- diff --git a/src/test/test-errno-util.c b/src/test/test-errno-util.c index 1a0154fb059..9eb729c2e4b 100644 --- a/src/test/test-errno-util.c +++ b/src/test/test-errno-util.c @@ -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) {