summaryrefslogtreecommitdiffstats
path: root/test/ruby
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-09-04 21:30:52 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-09-04 21:30:52 +0000
commit9d9a9ab5efd323a154de9ab912e98cdb3f9b930f (patch)
treea2b23233ce4f83592a28613a450ca1cd7bc9dc80 /test/ruby
parent0eecd0313264c0858f23b51134e50609228ae622 (diff)
downloadruby-9d9a9ab5efd323a154de9ab912e98cdb3f9b930f.tar.gz
ruby-9d9a9ab5efd323a154de9ab912e98cdb3f9b930f.tar.xz
ruby-9d9a9ab5efd323a154de9ab912e98cdb3f9b930f.zip
* test/ruby/test_io.rb (test_binmode_after_closed): test for [ruby-core:25363].
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@24752 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 ab893dbfd..7a0ecc0cf 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