summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--test/ruby/test_io.rb6
1 files changed, 4 insertions, 2 deletions
diff --git a/test/ruby/test_io.rb b/test/ruby/test_io.rb
index 4654ec3ea7..21f85c284c 100644
--- a/test/ruby/test_io.rb
+++ b/test/ruby/test_io.rb
@@ -1672,7 +1672,10 @@ class TestIO < Test::Unit::TestCase
case f.statfs.type
when 0x9123683E # BTRFS_SUPER_MAGIC
when 0x7461636f # OCFS2_SUPER_MAGIC
- when 0xEF53 # EXT4_SUPER_MAGIC
+ when 0xEF53 # EXT2_SUPER_MAGIC EXT3_SUPER_MAGIC EXT4_SUPER_MAGIC
+ # ext3's timestamp resolution is seconds
+ s = f.stat
+ stat.mtime.nsec != 0 || stat.atime.nsec != 0 || stat.ctime.nsec != 0
when 0x58465342 # XFS_SUPER_MAGIC
when 0x01021994 # TMPFS_MAGIC
else
@@ -1682,7 +1685,6 @@ class TestIO < Test::Unit::TestCase
true
end
-
def test_seek
make_tempfile {|t|
open(t.path) { |f|