Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 14 additions & 0 deletions unittest/mysys/my_tzinfo-t.c
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,20 @@ void test_timezone(const char *tz_env, const char **expected_tznames,
}
}
ok(found, "%s: timezone_name = %s", tz_env, timezone_name);

#if defined __linux__ && !defined __GLIBC__ && !defined __UCLIBC__
/*
MUSL incorrectly calculates UTC offsets and abbreviations
for certain values of TZ (DST related). See MDEV-38029
Skip tests in this case.
*/
if (!strcmp(tz_env, "PST8PDT") || !strcmp(tz_env, "GST-1GDT"))
{
skip(6, "musl UTC offset/abbreviation bug, tzname %s, see MDEV-38029", tz_env);
return;
}
#endif

my_tzinfo(SUMMER_TIMESTAMP, &tz);
ok(summer_gmt_off == tz.seconds_offset, "%s: Summer GMT offset %ld", tz_env, tz.seconds_offset);
check_utc_offset(SUMMER_TIMESTAMP,tz.seconds_offset, tz_env);
Expand Down