1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00
ruby--ruby/spec/ruby/core/file
Yusuke Endoh 2173ae7801 spec/ruby/core/file/utime_spec.rb: far future timestamp may be trancated
Under some Ext4 filesystem settings, a timestamp is limited up to
0x37fffffff (2446-05-10).

https://ext4.wiki.kernel.org/index.php/Ext4_Disk_Layout#Inode_Timestamps
> Therefore, timestamps should not overflow until May 2446.

Actually the spec fails under one of our CI environments, like:

```
1)
File.utime allows Time instances in the far future to set mtime and atime FAILED
Expected 2446 == 559444
to be truthy but was false
```
20200208T180002Z.fail.html.gz
2020-02-09 11:13:06 +09:00
..
constants
fixtures
shared Update to ruby/spec@34e6246 2019-09-29 19:13:37 +02:00
stat
absolute_path_spec.rb
atime_spec.rb
basename_spec.rb
birthtime_spec.rb
blockdev_spec.rb
chardev_spec.rb
chmod_spec.rb Fixed misspellings 2019-12-20 09:32:42 +09:00
chown_spec.rb
constants_spec.rb
ctime_spec.rb
delete_spec.rb
directory_spec.rb
dirname_spec.rb
empty_spec.rb
executable_real_spec.rb
executable_spec.rb
exist_spec.rb
exists_spec.rb
expand_path_spec.rb
extname_spec.rb Revert "Should return "." for File.extname("file.") also on Windows" 2019-12-23 11:54:25 +09:00
file_spec.rb
flock_spec.rb
fnmatch_spec.rb Update to ruby/spec@c1b568b 2018-03-04 15:09:32 +00:00
ftype_spec.rb Update to ruby/spec@4eec3dc 2019-11-30 21:26:52 +01:00
grpowned_spec.rb
identical_spec.rb
initialize_spec.rb
inspect_spec.rb
join_spec.rb
lchmod_spec.rb
lchown_spec.rb
link_spec.rb Update to ruby/spec@34e6246 2019-09-29 19:13:37 +02:00
lstat_spec.rb
lutime_spec.rb Update to ruby/spec@4eec3dc 2019-11-30 21:26:52 +01:00
mkfifo_spec.rb
mtime_spec.rb
new_spec.rb Update to ruby/spec@34e6246 2019-09-29 19:13:37 +02:00
null_spec.rb
open_spec.rb Update to ruby/spec@4eec3dc 2019-11-30 21:26:52 +01:00
owned_spec.rb
path_spec.rb
pipe_spec.rb
printf_spec.rb
read_spec.rb Update to ruby/spec@c1b568b 2018-03-04 15:09:32 +00:00
readable_real_spec.rb
readable_spec.rb Update to ruby/spec@c1b568b 2018-03-04 15:09:32 +00:00
readlink_spec.rb Get rid of false positive misspellings 2019-12-24 10:33:32 +09:00
realdirpath_spec.rb
realpath_spec.rb Update to ruby/spec@875a09e 2019-07-27 12:40:09 +02:00
rename_spec.rb Update to ruby/spec@34e6246 2019-09-29 19:13:37 +02:00
reopen_spec.rb
setgid_spec.rb
setuid_spec.rb
size_spec.rb
socket_spec.rb
split_spec.rb
stat_spec.rb
sticky_spec.rb
symlink_spec.rb
to_path_spec.rb
truncate_spec.rb
umask_spec.rb
unlink_spec.rb
utime_spec.rb spec/ruby/core/file/utime_spec.rb: far future timestamp may be trancated 2020-02-09 11:13:06 +09:00
world_readable_spec.rb Update to ruby/spec@34e6246 2019-09-29 19:13:37 +02:00
world_writable_spec.rb Update to ruby/spec@34e6246 2019-09-29 19:13:37 +02:00
writable_real_spec.rb
writable_spec.rb
zero_spec.rb