[前][次][番号順一覧][スレッド一覧]

ruby-changes:33610

From: naruse <ko1@a...>
Date: Wed, 23 Apr 2014 15:05:40 +0900 (JST)
Subject: [ruby-changes:33610] naruse:r45691 (trunk): skip on SEEK_HOLE

naruse	2014-04-23 15:05:30 +0900 (Wed, 23 Apr 2014)

  New Revision: 45691

  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=45691

  Log:
    skip on SEEK_HOLE

  Modified files:
    trunk/test/ruby/test_io.rb
Index: test/ruby/test_io.rb
===================================================================
--- test/ruby/test_io.rb	(revision 45690)
+++ test/ruby/test_io.rb	(revision 45691)
@@ -1733,6 +1733,7 @@ class TestIO < Test::Unit::TestCase https://github.com/ruby/ruby/blob/trunk/test/ruby/test_io.rb#L1733
 
       if defined?(IO::SEEK_HOLE)
         open(t.path) { |f|
+          break unless can_seek_data(f)
           assert_equal("foo\n", f.gets)
           f.seek(0, IO::SEEK_HOLE)
           assert_operator(f.pos, :>, 20)
@@ -1783,6 +1784,7 @@ class TestIO < Test::Unit::TestCase https://github.com/ruby/ruby/blob/trunk/test/ruby/test_io.rb#L1784
 
       if defined?(IO::SEEK_HOLE)
         open(t.path) { |f|
+          break unless can_seek_data(f)
           assert_equal("foo\n", f.gets)
           f.seek(0, :HOLE)
           assert_operator(f.pos, :>, 20)

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]