diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2015-06-30 07:48:24 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2015-06-30 07:48:24 +0000 |
commit | c810ab8ff57371bf65b0bb20f268871398c8f7e8 (patch) | |
tree | a66cab82ddafaa0e1f0ae2e9f419da2effd05375 | |
parent | af9e072c7ee0e1be48eedccf442d85dec097964c (diff) | |
download | ruby-c810ab8ff57371bf65b0bb20f268871398c8f7e8.tar.gz |
test_io.rb: skip method definitions
* test/ruby/{test_io,test_io_m17n}.rb: skip method definitions on
unsupported platforms.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@51068 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r-- | test/ruby/test_io.rb | 3 | ||||
-rw-r--r-- | test/ruby/test_io_m17n.rb | 3 |
2 files changed, 2 insertions, 4 deletions
diff --git a/test/ruby/test_io.rb b/test/ruby/test_io.rb index 9ded25b051..8e09df48f5 100644 --- a/test/ruby/test_io.rb +++ b/test/ruby/test_io.rb @@ -1653,7 +1653,6 @@ class TestIO < Test::Unit::TestCase 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 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| diff --git a/test/ruby/test_io_m17n.rb b/test/ruby/test_io_m17n.rb index 734b0172ac..c464bceae0 100644 --- a/test/ruby/test_io_m17n.rb +++ b/test/ruby/test_io_m17n.rb @@ -1223,7 +1223,6 @@ EOT 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 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| |