summaryrefslogtreecommitdiff
path: root/test/ruby/test_file.rb
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2014-05-23 12:31:58 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2014-05-23 12:31:58 +0000
commit8ab27ebbb14be80e844ebeada7197458440c6ab5 (patch)
treea9d8e3f9ccb14dd157417504e325632e9cf9994c /test/ruby/test_file.rb
parentc70edbef91e27c7f1626717bfba002a7433e23d7 (diff)
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
Diffstat (limited to 'test/ruby/test_file.rb')
-rw-r--r--test/ruby/test_file.rb6
1 files 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