From 9ee8113113fb7189b563f9177b9301309c810286 Mon Sep 17 00:00:00 2001 From: yugui Date: Sat, 31 Oct 2009 13:04:24 +0000 Subject: merges r24752 from trunk into ruby_1_9_1. -- * test/ruby/test_io.rb (test_binmode_after_closed): test for [ruby-core:25363]. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_1@25588 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- test/ruby/test_io.rb | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'test') diff --git a/test/ruby/test_io.rb b/test/ruby/test_io.rb index 04c0b55533..3550162aa9 100644 --- a/test/ruby/test_io.rb +++ b/test/ruby/test_io.rb @@ -1374,4 +1374,10 @@ class TestIO < Test::Unit::TestCase assert(File.read(t.path, 4).tainted?, '[ruby-dev:38826]') assert(File.open(t.path) {|f| f.read(4)}.tainted?, '[ruby-dev:38826]') end + + def test_binmode_after_closed + t = make_tempfile + t.close + assert_raise(IOError) {t.binmode} + end end -- cgit v1.2.3