[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. (cherry picked from commit cdd608b8f0ce090b3568238387df368751bdbb5d)
This commit is contained in:
parent
4dbe72f91a
commit
23eadbda36
@ -13,9 +13,6 @@
|
|||||||
// XFAIL: libcpp-has-no-experimental-tzdb
|
// XFAIL: libcpp-has-no-experimental-tzdb
|
||||||
// XFAIL: availability-tzdb-missing
|
// XFAIL: availability-tzdb-missing
|
||||||
|
|
||||||
// TODO TZDB Investigate
|
|
||||||
// UNSUPPORTED: target={{armv(7|8)l-linux-gnueabihf}}
|
|
||||||
|
|
||||||
#include <chrono>
|
#include <chrono>
|
||||||
#include <format>
|
#include <format>
|
||||||
#include <fstream>
|
#include <fstream>
|
||||||
@ -28,7 +25,7 @@
|
|||||||
// The year range to validate. The dates used in practice are expected to be
|
// The year range to validate. The dates used in practice are expected to be
|
||||||
// inside the tested range.
|
// inside the tested range.
|
||||||
constexpr std::chrono::year first{1800};
|
constexpr std::chrono::year first{1800};
|
||||||
constexpr std::chrono::year last{2100};
|
constexpr std::chrono::year last{sizeof(time_t) == 8 ? 2100 : 2037};
|
||||||
|
|
||||||
// A custom sys_info class that also stores the name of the time zone.
|
// A custom sys_info class that also stores the name of the time zone.
|
||||||
// Its formatter matches the output of zdump.
|
// Its formatter matches the output of zdump.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user