From aba879a3f08cebd78ddd76aefceb6bafb8dbf907 Mon Sep 17 00:00:00 2001 From: nobu Date: Fri, 17 Jun 2011 22:34:07 +0000 Subject: * 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 --- test/io/console/test_io_console.rb | 2 ++ 1 file changed, 2 insertions(+) (limited to 'test/io/console/test_io_console.rb') 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) -- cgit v1.2.3