Skip to content

Commit cdd608b

Browse files
[libcxx][test] Use smaller time range for 32 bit time_t (#104762)
This fixes the test on Arm 32 bit Ubuntu Jammy where time_t is 32 bit.
1 parent 940f892 commit cdd608b

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

libcxx/test/std/time/time.zone/time.zone.timezone/time.zone.members/sys_info.zdump.pass.cpp

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,6 @@
1313
// XFAIL: libcpp-has-no-experimental-tzdb
1414
// XFAIL: availability-tzdb-missing
1515

16-
// TODO TZDB Investigate
17-
// UNSUPPORTED: target={{armv(7|8)l-linux-gnueabihf}}
18-
1916
#include <chrono>
2017
#include <format>
2118
#include <fstream>
@@ -28,7 +25,7 @@
2825
// The year range to validate. The dates used in practice are expected to be
2926
// inside the tested range.
3027
constexpr std::chrono::year first{1800};
31-
constexpr std::chrono::year last{2100};
28+
constexpr std::chrono::year last{sizeof(time_t) == 8 ? 2100 : 2037};
3229

3330
// A custom sys_info class that also stores the name of the time zone.
3431
// Its formatter matches the output of zdump.

0 commit comments

Comments
 (0)