From 18f280a478ae85307b4597f7ccd588c860edf42c Mon Sep 17 00:00:00 2001 From: Yu Watanabe Date: Wed, 19 Nov 2025 04:46:25 +0900 Subject: [PATCH] test: fix tested function name The test tests STRERROR_OR_EOF(), but logged as STRERROR_OR_ELSE. --- src/test/test-errno-util.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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) { -- 2.47.3