1
0
mirror of https://github.com/systemd/systemd.git synced 2024-10-30 23:21:22 +03:00

test-time-util: skip missing timezones

Fixes #20089. This is essentially a packaging bug in CentOS: the
db lists a timezone which is not present in /usr/share/zoneinfo.
Let's skip this gracefully.
This commit is contained in:
Zbigniew Jędrzejewski-Szmek 2021-07-01 10:16:56 +00:00
parent bdaeafea5d
commit dc9849b1e5

View File

@ -273,8 +273,9 @@ static void test_get_timezones(void) {
assert_se(r == 0);
STRV_FOREACH(zone, zones) {
log_info("zone: %s", *zone);
assert_se(timezone_is_valid(*zone, LOG_ERR));
r = verify_timezone(*zone, LOG_ERR);
log_debug_errno(r, "verify_timezone(\"%s\"): %m", *zone);
assert_se(r >= 0 || r == -ENOENT);
}
}