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

ruby-changes:21639

From: usa <ko1@a...>
Date: Wed, 9 Nov 2011 22:15:33 +0900 (JST)
Subject: [ruby-changes:21639] usa:r33688 (trunk): * test/ruby/test_file.rb (TestFile#test_utime_with_minus_time_segv):

usa	2011-11-09 22:15:12 +0900 (Wed, 09 Nov 2011)

  New Revision: 33688

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

  Log:
    * test/ruby/test_file.rb (TestFile#test_utime_with_minus_time_segv):
      fixed previous commit.

  Modified files:
    trunk/ChangeLog
    trunk/test/ruby/test_file.rb

Index: ChangeLog
===================================================================
--- ChangeLog	(revision 33687)
+++ ChangeLog	(revision 33688)
@@ -1,3 +1,8 @@
+Wed Nov  9 22:13:38 2011  NAKAMURA Usaku  <usa@r...>
+
+	* test/ruby/test_file.rb (TestFile#test_utime_with_minus_time_segv):
+	  fixed previous commit.
+
 Wed Nov  9 19:53:45 2011  NAKAMURA Usaku  <usa@r...>
 
 	* test/ruby/test_file.rb (TestFile#test_utime_with_minus_time_segv):
Index: test/ruby/test_file.rb
===================================================================
--- test/ruby/test_file.rb	(revision 33687)
+++ test/ruby/test_file.rb	(revision 33688)
@@ -185,9 +185,10 @@
   def test_utime_with_minus_time_segv
     bug5596 = '[ruby-dev:44838]'
     assert_in_out_err([], <<-EOS, [bug5596], [])
+      require "tempfile"
       t = Time.at(-1)
       begin
-        f = Tempfile.new
+        f = Tempfile.new('test_utime_with_minus_time_segv')
         File.utime(t, t, f)
       rescue
       end

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

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