mirror of
https://github.com/fish-shell/fish-shell
synced 2024-12-28 05:43:11 +00:00
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:
parent
9493e7725f
commit
4ffcbe3526
1 changed files with 5 additions and 3 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue