From d7b8b3ffd51c8619ebe6ed5dd35fdf664fc84945 Mon Sep 17 00:00:00 2001 From: Sebastien GODARD Date: Sun, 5 Feb 2023 15:19:19 +0100 Subject: [PATCH] SIMTEST: Update default unix_time value Default value for the number of seconds since the Epoch is no longer 0 (01/01/1970) but 1591016000 which corresponds to 06/01/2020. Signed-off-by: Sebastien GODARD --- systest.c | 2 +- tests/00230 | 2 +- tests/01320 | 2 +- tests/01330 | 2 +- tests/TLIST | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/systest.c b/systest.c index a64f87d..431b557 100644 --- a/systest.c +++ b/systest.c @@ -37,7 +37,7 @@ #include "systest.h" -time_t __unix_time = 0; +time_t __unix_time = 1591016000; /* Mon Jun 1 12:53:20 2020 UTC */ int __env = 0; extern long interval; diff --git a/tests/00230 b/tests/00230 index 78d8c02..b6e2a76 100644 --- a/tests/00230 +++ b/tests/00230 @@ -1,4 +1,4 @@ -# By default __unix_time value is 0, which corresponds to sa01 +# By default __unix_time value is 1591016000, which corresponds to sa01 rm -f tests/sa01 rm -f tests/root diff --git a/tests/01320 b/tests/01320 index 01df805..6fe5bf8 100644 --- a/tests/01320 +++ b/tests/01320 @@ -1,2 +1,2 @@ -rm -f tests/sa19700101 +rm -f tests/sa20200601 LC_ALL=C TZ=GMT ./sadc -D - diff --git a/tests/01330 b/tests/01330 index eecc65c..7b891e6 100644 --- a/tests/01330 +++ b/tests/01330 @@ -1 +1 @@ -LC_ALL=C TZ=GMT ./sar -f tests/sa19700101 > tests/out32.sar-u.tmp && diff -u tests/expected32.sar-u tests/out32.sar-u.tmp +LC_ALL=C TZ=GMT ./sar -f tests/sa20200601 > tests/out32.sar-u.tmp && diff -u tests/expected32.sar-u tests/out32.sar-u.tmp diff --git a/tests/TLIST b/tests/TLIST index ce8d903..28d4cbf 100644 --- a/tests/TLIST +++ b/tests/TLIST @@ -259,7 +259,7 @@ NOTES: 01314 LC_ALL=C TZ=GMT ./sar > tests/out31.sar-u.tmp 01318 LC_ALL=C TZ=GMT ./sar -f tests > tests/out34.sar-u.tmp 01320 LC_ALL=C TZ=GMT ./sadc -D - -01330 LC_ALL=C TZ=GMT ./sar -f tests/sa19700101 > tests/out32.sar-u.tmp +01330 LC_ALL=C TZ=GMT ./sar -f tests/sa20200601 > tests/out32.sar-u.tmp 01335 LC_ALL=C TZ=GMT ./sar > tests/out33.sar-u.tmp 01340 ./sadf > tests/out3.sadf.tmp 01350 TZ=GMT ./sadc --unix_time=1556755199 - 1 3 -- 2.40.0