ruby-changes:33602
From: naruse <ko1@a...>
Date: Wed, 23 Apr 2014 12:54:02 +0900 (JST)
Subject: [ruby-changes:33602] naruse:r45683 (trunk): check Linux version
naruse 2014-04-23 12:53:53 +0900 (Wed, 23 Apr 2014) New Revision: 45683 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=45683 Log: check Linux version Modified files: trunk/test/ruby/test_io.rb Index: test/ruby/test_io.rb =================================================================== --- test/ruby/test_io.rb (revision 45682) +++ test/ruby/test_io.rb (revision 45683) @@ -1673,11 +1673,14 @@ class TestIO < Test::Unit::TestCase https://github.com/ruby/ruby/blob/trunk/test/ruby/test_io.rb#L1673 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 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/