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

ruby-changes:38987

From: nobu <ko1@a...>
Date: Tue, 30 Jun 2015 16:48:42 +0900 (JST)
Subject: [ruby-changes:38987] nobu:r51068 (trunk): test_io.rb: skip method definitions

nobu	2015-06-30 16:48:24 +0900 (Tue, 30 Jun 2015)

  New Revision: 51068

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

  Log:
    test_io.rb: skip method definitions
    
    * test/ruby/{test_io,test_io_m17n}.rb: skip method definitions on
      unsupported platforms.

  Modified files:
    trunk/test/ruby/test_io.rb
    trunk/test/ruby/test_io_m17n.rb
Index: test/ruby/test_io_m17n.rb
===================================================================
--- test/ruby/test_io_m17n.rb	(revision 51067)
+++ test/ruby/test_io_m17n.rb	(revision 51068)
@@ -1223,7 +1223,6 @@ EOT https://github.com/ruby/ruby/blob/trunk/test/ruby/test_io_m17n.rb#L1223
   end
 
   def test_stdin_external_encoding_with_reopen
-    skip "passing non-stdio fds is not supported" if /mswin|mingw/ =~ RUBY_PLATFORM
     with_tmpdir {
       open("tst", "w+") {|f|
         pid = spawn(EnvUtil.rubybin, '-e', <<-'End', 10=>f)
@@ -1239,7 +1238,7 @@ EOT https://github.com/ruby/ruby/blob/trunk/test/ruby/test_io_m17n.rb#L1238
         assert_equal("\u3042".force_encoding("ascii-8bit"), result)
       }
     }
-  end
+  end unless /mswin|mingw/ =~ RUBY_PLATFORM # passing non-stdio fds is not supported
 
   def test_popen_r_enc
     IO.popen("#{EnvUtil.rubybin} -e 'putc 255'", "r:ascii-8bit") {|f|
Index: test/ruby/test_io.rb
===================================================================
--- test/ruby/test_io.rb	(revision 51067)
+++ test/ruby/test_io.rb	(revision 51068)
@@ -1653,7 +1653,6 @@ class TestIO < Test::Unit::TestCase https://github.com/ruby/ruby/blob/trunk/test/ruby/test_io.rb#L1653
   end
 
   def test_close_on_exec
-    skip "IO\#close_on_exec is not implemented." unless have_close_on_exec?
     ruby do |f|
       assert_equal(true, f.close_on_exec?)
       f.close_on_exec = false
@@ -1681,7 +1680,7 @@ class TestIO < Test::Unit::TestCase https://github.com/ruby/ruby/blob/trunk/test/ruby/test_io.rb#L1680
       w.close_on_exec = false
       assert_equal(false, w.close_on_exec?)
     end
-  end
+  end if have_close_on_exec?
 
   def test_pos
     make_tempfile {|t|

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

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