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
Yusuke Endoh 6325866421 spec/ruby/core/file/utime_spec.rb: XFS seems to have Year 2038 problem
https://rubyci.org/logs/rubyci.s3.amazonaws.com/rhel8/ruby-master/log/20201112T123004Z.fail.html.gz
```
1)
File.utime allows Time instances in the far future to set mtime and
atime (but some filesystems limit it up to 2446-05-10) FAILED
Expected [559444, 2446].include? 2038
to be truthy but was false
/home/chkbuild/chkbuild/tmp/build/20201112T123004Z/ruby/spec/ruby/core/file/utime_spec.rb:80:in
`block (4 levels) in <top (required)>'
/home/chkbuild/chkbuild/tmp/build/20201112T123004Z/ruby/spec/ruby/core/file/utime_spec.rb:3:in
`<top (required)>'
```

```
$ touch foo
$ ./miniruby -e 'time = Time.at(1<<44); File.utime(time, time, "foo")'
$ ls -l foo
-rw-r--r--. 1 mame wheel 0 Jan 19  2038 foo
```
2020-11-12 23:39:27 +09:00
..
argf
array Make Array methods return Array instances instead of subclass instances 2020-11-03 14:01:38 -08:00
basicobject
binding
builtin_constants
class
comparable
complex
data
dir
encoding
enumerable
enumerator
env
exception
false
fiber
file spec/ruby/core/file/utime_spec.rb: XFS seems to have Year 2038 problem 2020-11-12 23:39:27 +09:00
filetest
float
gc
hash
integer
io
kernel
main
marshal
matchdata
math
method
module
mutex
nil
numeric
objectspace
proc
process
queue
random
range
rational
regexp
signal
sizedqueue
string
struct
symbol
systemexit
thread
threadgroup
time
tracepoint
true
unboundmethod
warning Fix Rubyspec (ruby-2.7) failures 2020-11-01 17:37:03 +09:00