[前][次][番号順一覧][スレッド一覧]

ruby-changes:20108

From: nobu <ko1@a...>
Date: Sat, 18 Jun 2011 07:34:21 +0900 (JST)
Subject: [ruby-changes:20108] nobu:r32155 (trunk): * test/io/console/test_io_console.rb (TestIO_Console#test_noctty):

nobu	2011-06-18 07:34:07 +0900 (Sat, 18 Jun 2011)

  New Revision: 32155

  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=32155

  Log:
    * test/io/console/test_io_console.rb (TestIO_Console#test_noctty):
      dispose temporary file.

  Modified files:
    trunk/test/io/console/test_io_console.rb

Index: test/io/console/test_io_console.rb
===================================================================
--- test/io/console/test_io_console.rb	(revision 32154)
+++ test/io/console/test_io_console.rb	(revision 32155)
@@ -196,6 +196,8 @@
       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)

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]