Skip to content

Commit

Permalink
[libc++][TZDZ] Validates the database version.
Browse files Browse the repository at this point in the history
It seems one of the tests requires a very recent timezone database. Skip
the test when the database is older.
  • Loading branch information
mordante committed Apr 13, 2024
1 parent cbfcfdf commit 2685256
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -175,6 +175,10 @@ static void test_indian_kerguelen() {
// 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 =
Expand Down

0 comments on commit 2685256

Please sign in to comment.