diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2011-06-17 22:34:07 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2011-06-17 22:34:07 +0000 |
commit | aba879a3f08cebd78ddd76aefceb6bafb8dbf907 (patch) | |
tree | 6fc2f88ca04575f5cf39731df45ab9bfd1c97fef /test | |
parent | 610b2f96e38bf8eb72891a096515a7ace3ddb3bc (diff) | |
download | ruby-aba879a3f08cebd78ddd76aefceb6bafb8dbf907.tar.gz |
* test/io/console/test_io_console.rb (TestIO_Console#test_noctty):
dispose temporary file.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32155 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test')
-rw-r--r-- | test/io/console/test_io_console.rb | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/test/io/console/test_io_console.rb b/test/io/console/test_io_console.rb index a0f88b6f8b..a73fe69576 100644 --- a/test/io/console/test_io_console.rb +++ b/test/io/console/test_io_console.rb @@ -196,6 +196,8 @@ class TestIO_Console < Test::Unit::TestCase system(*cmd) t.open assert_equal("nil", t.gets.chomp) + ensure + t.close! if t and !t.closed? end end end if defined?(IO.console) |