diff options
author | Yu Watanabe <watanabe.yu+github@gmail.com> | 2023-03-12 12:57:16 +0100 |
---|---|---|
committer | Yu Watanabe <watanabe.yu+github@gmail.com> | 2023-03-12 20:43:19 +0100 |
commit | bd5770da76ee157d3b31323ed2d22f5d9082bb36 (patch) | |
tree | 77045acf5666226a227e4af960658995a26bda36 /src/test/test-time-util.c | |
parent | Merge pull request #26756 from yuwata/edit-util-cleanups (diff) | |
download | systemd-bd5770da76ee157d3b31323ed2d22f5d9082bb36.tar.xz systemd-bd5770da76ee157d3b31323ed2d22f5d9082bb36.zip |
time-util: make USEC_TIMESTAMP_FORMATTABLE_MAX for 32bit system off by one day
As the same reason why we take one day off for 64bit case.
This also makes both upper bounds always defined for testing.
Diffstat (limited to 'src/test/test-time-util.c')
-rw-r--r-- | src/test/test-time-util.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/test/test-time-util.c b/src/test/test-time-util.c index e974520bbe..44eb0d25f6 100644 --- a/src/test/test-time-util.c +++ b/src/test/test-time-util.c @@ -617,8 +617,8 @@ TEST(format_timestamp_range) { test_format_timestamp_one(USEC_TIMESTAMP_FORMATTABLE_MAX + 1, TIMESTAMP_US_UTC, "--- XXXX-XX-XX XX:XX:XX.XXXXXX UTC"); test_format_timestamp_one(USEC_TIMESTAMP_FORMATTABLE_MAX + 1, TIMESTAMP_DATE, "--- XXXX-XX-XX"); #elif SIZEOF_TIME_T == 4 - test_format_timestamp_one(USEC_TIMESTAMP_FORMATTABLE_MAX, TIMESTAMP_UTC, "Tue 2038-01-19 03:14:07 UTC"); - test_format_timestamp_one(USEC_TIMESTAMP_FORMATTABLE_MAX, TIMESTAMP_DATE, "Tue 2038-01-19"); + test_format_timestamp_one(USEC_TIMESTAMP_FORMATTABLE_MAX, TIMESTAMP_UTC, "Mon 2038-01-18 03:14:07 UTC"); + test_format_timestamp_one(USEC_TIMESTAMP_FORMATTABLE_MAX, TIMESTAMP_DATE, "Mon 2038-01-18"); test_format_timestamp_one(USEC_TIMESTAMP_FORMATTABLE_MAX + 1, TIMESTAMP_UTC, "--- XXXX-XX-XX XX:XX:XX UTC"); test_format_timestamp_one(USEC_TIMESTAMP_FORMATTABLE_MAX + 1, TIMESTAMP_US_UTC, "--- XXXX-XX-XX XX:XX:XX.XXXXXX UTC"); test_format_timestamp_one(USEC_TIMESTAMP_FORMATTABLE_MAX + 1, TIMESTAMP_DATE, "--- XXXX-XX-XX"); |