Skip to content

Commit

Permalink
Make tests pass some more years
Browse files Browse the repository at this point in the history
Without this patch, tests start to fail after 2029.

Background:
As part of my work on reproducible builds for openSUSE, I check that software still gives identical build results in the future.
The usual offset is +16 years, because that is how long I expect some software will be used in some places.
This showed up failing tests in our package build.
See https://reproducible-builds.org/ for why this matters.
  • Loading branch information
bmwiedemann authored and JanWielemaker committed Nov 25, 2024
1 parent 848bc2d commit 8756275
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Tests/core/test_time.pl
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@

test(get_time) :-
get_time(Now),
assertion(Now > (2018-1970)*365*24*3600),
assertion(Now < (2030-1970)*365*24*3600).
assertion(Now > (2024-1970)*365*24*3600),
assertion(Now < (2050-1970)*365*24*3600).

:- end_tests(time).

0 comments on commit 8756275

Please sign in to comment.