From 4ffcbe35261c11cff032ee2689749ee08a39d3b9 Mon Sep 17 00:00:00 2001 From: Fabian Boehm Date: Tue, 20 Sep 2022 16:15:42 +0200 Subject: [PATCH] tests/path: Allow a little slack This was 86400 on some systems but 82800 on mine. I think that's a timezone thing? --- tests/checks/path.fish | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/tests/checks/path.fish b/tests/checks/path.fish index f4a9c0f3e..8f5d526f3 100644 --- a/tests/checks/path.fish +++ b/tests/checks/path.fish @@ -217,6 +217,8 @@ or echo mtime is too small test $mtime -lt 20 or echo mtime is too large -touch -m -t 197001020000.00 epoch -path mtime epoch -# CHECK: 82800 +touch -m -t 197001020000 epoch +set -l epochtime (path mtime epoch) +# Allow for timezone shenanigans +test $epochtime -gt 0 -a $epochtime -lt 180000 +or echo Oops not mtime