Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make tests pass in 2038 #1525

Merged
merged 1 commit into from
Oct 19, 2024
Merged

Make tests pass in 2038 #1525

merged 1 commit into from
Oct 19, 2024

Conversation

bmwiedemann
Copy link
Contributor

@bmwiedemann bmwiedemann commented Oct 14, 2024

Make tests pass in 2038

Fixes #1524

we use relative future timestamps to keep systems with 32-bit time_t working until 2037 (this should give them 1 year advance warning that they need to fix something).

Use the 3rd of January of the following year to ensure that it is in the future, even when starting a second before new year.

@bmwiedemann bmwiedemann force-pushed the fix2038 branch 2 times, most recently from bbe8392 to 32f6f34 Compare October 18, 2024 06:52
@bmwiedemann bmwiedemann changed the title WIP make tests pass in 2038 Make tests pass in 2038 Oct 18, 2024
@bmwiedemann bmwiedemann marked this pull request as ready for review October 18, 2024 06:53
test/suites/base.bash Outdated Show resolved Hide resolved
Fixes ccache#1524

we use relative future timestamps to keep systems with 32-bit
time_t working until 2037.

Use the 3rd of January of the following year
to ensure that it is in the future, even when starting
a second before new year
@jrosdahl jrosdahl added bug Does not work as intended/documented test Affects testing of Ccache itself labels Oct 19, 2024
@jrosdahl jrosdahl added this to the 4.11 milestone Oct 19, 2024
@jrosdahl jrosdahl merged commit 7a99117 into ccache:master Oct 19, 2024
42 checks passed
@bmwiedemann bmwiedemann deleted the fix2038 branch October 21, 2024 10:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Does not work as intended/documented test Affects testing of Ccache itself
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Tests fail after 2038
2 participants