diff --git a/test/ruby/test_file_exhaustive.rb b/test/ruby/test_file_exhaustive.rb index 6f2fbb1bd2..031499b448 100644 --- a/test/ruby/test_file_exhaustive.rb +++ b/test/ruby/test_file_exhaustive.rb @@ -651,11 +651,11 @@ class TestFileExhaustive < Test::Unit::TestCase return unless symlinkfile t = Time.local(2000) stat = File.lstat(symlinkfile) - assert_equal(File.utime(t, t, symlinkfile), 1) - assert_equal(File.stat(regular_file).atime, t) - assert_equal(File.stat(regular_file).mtime, t) - assert_equal(File.lstat(symlinkfile).atime, stat.atime) - assert_equal(File.lstat(symlinkfile).mtime, stat.mtime) + 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