summaryrefslogtreecommitdiffstats
path: root/test/ruby
diff options
context:
space:
mode:
authoryugui <yugui@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-10-31 13:04:24 +0000
committeryugui <yugui@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-10-31 13:04:24 +0000
commitadaca8a60bd63672752b281df65ec7cd8f007ff6 (patch)
treeb5260a9f9a12d957d510d6868d7c309dc5357a6a /test/ruby
parent561b83451b5c0bcde84d7fae9340402965f06763 (diff)
downloadruby-adaca8a60bd63672752b281df65ec7cd8f007ff6.tar.gz
ruby-adaca8a60bd63672752b281df65ec7cd8f007ff6.tar.xz
ruby-adaca8a60bd63672752b281df65ec7cd8f007ff6.zip
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: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_9_1@25588 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/ruby')
-rw-r--r--test/ruby/test_io.rb6
1 files changed, 6 insertions, 0 deletions
diff --git a/test/ruby/test_io.rb b/test/ruby/test_io.rb
index 04c0b5553..3550162aa 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