From 87562759b9b527978128a527ededdd46798e9f57 Mon Sep 17 00:00:00 2001 From: "Bernhard M. Wiedemann" Date: Sun, 24 Nov 2024 17:27:07 +0100 Subject: [PATCH] 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. --- src/Tests/core/test_time.pl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Tests/core/test_time.pl b/src/Tests/core/test_time.pl index 3bd2c16faf..827c026caa 100644 --- a/src/Tests/core/test_time.pl +++ b/src/Tests/core/test_time.pl @@ -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).