diff options
author | naruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2014-04-23 03:53:53 +0000 |
---|---|---|
committer | naruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2014-04-23 03:53:53 +0000 |
commit | 73706907fb10832233bf9b30897952d2e7500ca1 (patch) | |
tree | 5d8a29a2585cd76e6c22986b77a649865c7786b1 /test | |
parent | cf72be26bed1f6503b7daa5a9f6ccfd0e8f3fe57 (diff) | |
download | ruby-73706907fb10832233bf9b30897952d2e7500ca1.tar.gz |
check Linux version
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45683 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test')
-rw-r--r-- | test/ruby/test_io.rb | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/test/ruby/test_io.rb b/test/ruby/test_io.rb index 841ccb4da8..fa99ce7285 100644 --- a/test/ruby/test_io.rb +++ b/test/ruby/test_io.rb @@ -1673,11 +1673,14 @@ class TestIO < Test::Unit::TestCase when 0x9123683E # BTRFS_SUPER_MAGIC when 0x7461636f # OCFS2_SUPER_MAGIC when 0xEF53 # EXT2_SUPER_MAGIC EXT3_SUPER_MAGIC EXT4_SUPER_MAGIC + return false if (`/bin/uname -r`.split('.') <=> %w[3 8]) < 0 # ext3's timestamp resolution is seconds s = f.stat s.mtime.nsec != 0 || s.atime.nsec != 0 || s.ctime.nsec != 0 when 0x58465342 # XFS_SUPER_MAGIC + return false if (`/bin/uname -r`.split('.') <=> %w[3 5]) < 0 when 0x01021994 # TMPFS_MAGIC + return false if (`/bin/uname -r`.split('.') <=> %w[3 8]) < 0 else return false end |