From 8ab27ebbb14be80e844ebeada7197458440c6ab5 Mon Sep 17 00:00:00 2001 From: nobu Date: Fri, 23 May 2014 12:31:58 +0000 Subject: test_file.rb: fix ctime on Windows * test/ruby/test_file.rb (test_stat): `ctime` on Windows is not last changed time. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@46059 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- test/ruby/test_file.rb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/test/ruby/test_file.rb b/test/ruby/test_file.rb index c7cfd777dc..d0f11882e5 100644 --- a/test/ruby/test_file.rb +++ b/test/ruby/test_file.rb @@ -329,11 +329,11 @@ class TestFile < Test::Unit::TestCase delta = 1 stat = File.stat(path) + assert_in_delta tb, stat.birthtime.to_f, delta + assert_in_delta t0+2, stat.mtime.to_f, delta if stat.birthtime != stat.ctime - assert_in_delta tb, stat.birthtime.to_f, delta + assert_in_delta t0+4, stat.ctime.to_f, delta end - assert_in_delta t0+2, stat.mtime.to_f, delta - assert_in_delta t0+4, stat.ctime.to_f, delta assert_in_delta t0+6, stat.atime.to_f, delta rescue NotImplementedError end -- cgit v1.2.3