Skip to content

Commit ea55ff6

Browse files
bmwiedemannJanWielemaker
authored andcommitted
Make tests pass some more years
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.
1 parent 38ce02c commit ea55ff6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Tests/core/test_time.pl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@
5555

5656
test(get_time) :-
5757
get_time(Now),
58-
assertion(Now > (2018-1970)*365*24*3600),
59-
assertion(Now < (2030-1970)*365*24*3600).
58+
assertion(Now > (2024-1970)*365*24*3600),
59+
assertion(Now < (2050-1970)*365*24*3600).
6060

6161
:- end_tests(time).

0 commit comments

Comments
 (0)