mirror of
https://github.com/llvm/llvm-project.git
synced 2025-04-26 04:46:08 +00:00
[libc++][TZDB] Removes test_indian_kerguelen test.
The work-around in 26852565a5f609e6b466f43c2f690ce3047d04c7 didn't fix the CI. Since the entire local database is compared with the libc++ implementation in a separate this this change does not remove coverage.
This commit is contained in:
parent
61f1f13002
commit
ecf44b4b71
@ -169,49 +169,6 @@ static void test_durations() {
|
||||
assert_equal(expected, tz->get_info(std::chrono::sys_time<std::chrono::years>{}));
|
||||
}
|
||||
|
||||
static void test_indian_kerguelen() {
|
||||
// One change, no rules, no dst changes.
|
||||
|
||||
// Z Indian/Kerguelen 0 - -00 1950
|
||||
// 5 - +05
|
||||
|
||||
// Make sure the entry is present in the database.
|
||||
if (std::chrono::get_tzdb().version < "2024a")
|
||||
return;
|
||||
|
||||
const std::chrono::time_zone* tz = std::chrono::locate_zone("Indian/Kerguelen");
|
||||
|
||||
std::chrono::sys_seconds transition =
|
||||
to_sys_seconds(std::chrono::year(1950), std::chrono::January, std::chrono::day(1));
|
||||
|
||||
assert_equal(
|
||||
std::chrono::sys_info(
|
||||
std::chrono::sys_seconds::min(), //
|
||||
transition, //
|
||||
std::chrono::seconds(0), //
|
||||
std::chrono::minutes(0), //
|
||||
"-00"), //
|
||||
tz->get_info(std::chrono::sys_seconds::min()));
|
||||
|
||||
assert_equal(
|
||||
std::chrono::sys_info(
|
||||
std::chrono::sys_seconds::min(), //
|
||||
transition, //
|
||||
std::chrono::seconds(0), //
|
||||
std::chrono::minutes(0), //
|
||||
"-00"), //
|
||||
tz->get_info(transition - std::chrono::seconds{1}));
|
||||
|
||||
assert_equal(
|
||||
std::chrono::sys_info(
|
||||
transition, //
|
||||
std::chrono::sys_seconds::max(), //
|
||||
std::chrono::hours(5), //
|
||||
std::chrono::minutes(0), //
|
||||
"+05"), //
|
||||
tz->get_info(transition));
|
||||
}
|
||||
|
||||
static void test_antarctica_syowa() {
|
||||
// One change, no rules, no dst changes
|
||||
// This change uses an ON field with a day number
|
||||
@ -1343,7 +1300,6 @@ int main(int, const char**) {
|
||||
// Basic tests
|
||||
test_gmt();
|
||||
test_durations();
|
||||
test_indian_kerguelen();
|
||||
test_antarctica_syowa();
|
||||
test_asia_hong_kong();
|
||||
test_europe_berlin();
|
||||
|
Loading…
x
Reference in New Issue
Block a user