diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2009-09-04 21:30:52 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2009-09-04 21:30:52 +0000 |
commit | 15ec8e6548e237c76c40286259cc684d90919da3 (patch) | |
tree | a2b23233ce4f83592a28613a450ca1cd7bc9dc80 /test | |
parent | 0cf0b0eed4442fe7ed07d0c0bffe8bd7acbbe166 (diff) | |
download | ruby-15ec8e6548e237c76c40286259cc684d90919da3.tar.gz |
* test/ruby/test_io.rb (test_binmode_after_closed): test for [ruby-core:25363].
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24752 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test')
-rw-r--r-- | test/ruby/test_io.rb | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/test/ruby/test_io.rb b/test/ruby/test_io.rb index ab893dbfd8..7a0ecc0cf1 100644 --- a/test/ruby/test_io.rb +++ b/test/ruby/test_io.rb @@ -1463,4 +1463,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 |