diff options
Diffstat (limited to 'test/io')
-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) |