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

ruby-changes:26914

From: akr <ko1@a...>
Date: Tue, 29 Jan 2013 12:06:57 +0900 (JST)
Subject: [ruby-changes:26914] akr:r38966 (trunk): * test/ruby/test_marshal.rb: remove temporally files early.

akr	2013-01-29 12:06:40 +0900 (Tue, 29 Jan 2013)

  New Revision: 38966

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

  Log:
    * test/ruby/test_marshal.rb: remove temporally files early.
    
    * test/ruby/test_process.rb: ditto.
    
    * test/psych/test_exception.rb: ditto.

  Modified files:
    trunk/ChangeLog
    trunk/test/psych/test_exception.rb
    trunk/test/ruby/test_marshal.rb
    trunk/test/ruby/test_process.rb

Index: ChangeLog
===================================================================
--- ChangeLog	(revision 38965)
+++ ChangeLog	(revision 38966)
@@ -1,3 +1,11 @@ https://github.com/ruby/ruby/blob/trunk/ChangeLog#L1
+Tue Jan 29 12:05:18 2013  Tanaka Akira  <akr@f...>
+
+	* test/ruby/test_marshal.rb: remove temporally files early.
+
+	* test/ruby/test_process.rb: ditto.
+
+	* test/psych/test_exception.rb: ditto.
+
 Tue Jan 29 09:26:20 2013  Shugo Maeda  <shugo@r...>
 
 	* ext/socket/socket.c (sock_s_pack_sockaddr_un): calculate the
Index: test/ruby/test_marshal.rb
===================================================================
--- test/ruby/test_marshal.rb	(revision 38965)
+++ test/ruby/test_marshal.rb	(revision 38966)
@@ -336,7 +336,9 @@ class TestMarshal < Test::Unit::TestCase https://github.com/ruby/ruby/blob/trunk/test/ruby/test_marshal.rb#L336
       re = Tempfile.open("marshal_regexp") do |f|
         f.binmode.write("\x04\bI/\x00\x00\x06:\rencoding\"\rUS-ASCII")
         f.close
-        Marshal.load(f.open.binmode)
+        re2 = Marshal.load(f.open.binmode)
+        f.close(true)
+        re2
       end
       assert_equal(//, re)
     end
Index: test/ruby/test_process.rb
===================================================================
--- test/ruby/test_process.rb	(revision 38965)
+++ test/ruby/test_process.rb	(revision 38966)
@@ -815,6 +815,7 @@ class TestProcess < Test::Unit::TestCase https://github.com/ruby/ruby/blob/trunk/test/ruby/test_process.rb#L815
       Process.wait(pid)
       tmp.rewind
       assert_equal(pid.to_s, tmp.read)
+      tmp.close(true)
     end
   end
 
Index: test/psych/test_exception.rb
===================================================================
--- test/psych/test_exception.rb	(revision 38965)
+++ test/psych/test_exception.rb	(revision 38966)
@@ -138,6 +138,7 @@ module Psych https://github.com/ruby/ruby/blob/trunk/test/psych/test_exception.rb#L138
         rescue StandardError
           assert true # count assertion
         ensure
+          t.close(true)
           return unless $!
 
           ancestors = $!.class.ancestors.inspect

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

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