tests/path: Allow a little slack

This was 86400 on some systems but 82800 on mine. I think that's a
timezone thing?
This commit is contained in:
Fabian Boehm 2022-09-20 16:15:42 +02:00
parent 9493e7725f
commit 4ffcbe3526

View file

@ -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