mirror of
https://github.com/ruby/ruby.git
synced 2025-08-27 15:06:10 +02:00
test_file_exhaustive.rb: test_utime_symlinkfile
* test_file_exhaustive.rb (test_utime_symlinkfile): investigate failures on some platforms. wait a second to tell if symlink atime is changed. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@61079 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
d52ef7541f
commit
ec74acd1a9
1 changed files with 1 additions and 0 deletions
|
@ -651,6 +651,7 @@ class TestFileExhaustive < Test::Unit::TestCase
|
|||
return unless symlinkfile
|
||||
t = Time.local(2000)
|
||||
stat = File.lstat(symlinkfile)
|
||||
sleep 1
|
||||
assert_equal(1, File.utime(t, t, symlinkfile))
|
||||
assert_equal(t, File.stat(regular_file).atime)
|
||||
assert_equal(t, File.stat(regular_file).mtime)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue