From: Zbigniew Jędrzejewski-Szmek Date: Thu, 19 Mar 2026 11:39:17 +0000 (+0100) Subject: test-time-util: restore relaxation of check is special timezones X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=bcb65f4b57bdf80618a5b022857a5b7d8a63751f;p=thirdparty%2Fsystemd.git test-time-util: restore relaxation of check is special timezones Fixup for 514fa9d39ae9935ef1e014a3dd48dd5856007df2. We are now getting failures in CI i386 builds in Fedora rawhide: TZ=Europe/Lisbon, tzname[0]=WET, tzname[1]=WEST @212545617716594 → Sun 1976-09-26 00:26:57 WET → @212542017000000 → Sun 1976-09-26 00:26:57 CET src/test/test-time-util.c:450: Assertion failed: Expected "ignore" to be true Restore the conditionalization for CAT, EAT, WET that was removed in the refactoring. --- diff --git a/src/test/test-time-util.c b/src/test/test-time-util.c index d3d4fd5f9b2..04da9891cb7 100644 --- a/src/test/test-time-util.c +++ b/src/test/test-time-util.c @@ -439,7 +439,7 @@ static void test_format_timestamp_impl(usec_t x) { * Also, the same may happen on MSK timezone (e.g. Europe/Volgograd or Europe/Kirov). */ bool ignore = (streq_ptr(getenv("TZ"), "Africa/Windhoek") || - streq_ptr(get_tzname(/* dst= */ false), "MSK")) && + STRPTR_IN_SET(get_tzname(/* dst= */ false), "CAT", "EAT", "MSK", "WET")) && (x_sec > y_sec ? x_sec - y_sec : y_sec - x_sec) == 3600; log_full(ignore ? LOG_WARNING : LOG_ERR,