mirror of
https://github.com/fish-shell/fish-shell.git
synced 2024-11-23 08:39:37 +08: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
|
@ -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 New Issue
Block a user