1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

test_file_exhaustive.rb: get rid of failures

* test/ruby/test_file_exhaustive.rb (test_utime_symlinkfile):
  under some condition, symlink file is also affected by utimes()
  on Linux.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@61081 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
nobu 2017-12-08 07:35:07 +00:00
parent 60771d1315
commit bd61ccef57

View file

@ -651,12 +651,9 @@ 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)
assert_equal(stat.atime, File.lstat(symlinkfile).atime)
assert_equal(stat.mtime, File.lstat(symlinkfile).mtime)
end
def test_lutime