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

ruby-changes:16071

From: usa <ko1@a...>
Date: Wed, 26 May 2010 15:38:26 +0900 (JST)
Subject: [ruby-changes:16071] Ruby:r28020 (ruby_1_9_2): merge from trunk (r28019)

usa	2010-05-26 15:38:21 +0900 (Wed, 26 May 2010)

  New Revision: 28020

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

  Log:
    merge from trunk (r28019)
    
    * test/test_tempfile.rb: skip some tests on Windows because unlinking is always
      delayed till closed.

  Modified files:
    branches/ruby_1_9_2/test/test_tempfile.rb

Index: ruby_1_9_2/test/test_tempfile.rb
===================================================================
--- ruby_1_9_2/test/test_tempfile.rb	(revision 28019)
+++ ruby_1_9_2/test/test_tempfile.rb	(revision 28020)
@@ -86,6 +86,7 @@
   end
 
   def test_unlink_before_close_works_on_posix_systems
+    skip "on Windows, unlink is always delayed" if /mswin|mingw/ =~ RUBY_PLATFORM
     tempfile = tempfile("foo")
     begin
       path = tempfile.path
@@ -118,6 +119,7 @@
   end
 
   def test_close_with_unlink_now_true_does_not_unlink_if_already_unlinked
+    skip "on Windows, unlink is always delayed" if /mswin|mingw/ =~ RUBY_PLATFORM
     t = tempfile("foo")
     path = t.path
     t.unlink
@@ -140,6 +142,7 @@
   end
 
   def test_close_bang_does_not_unlink_if_already_unlinked
+    skip "on Windows, unlink is always delayed" if /mswin|mingw/ =~ RUBY_PLATFORM
     t = tempfile("foo")
     path = t.path
     t.unlink
@@ -153,6 +156,7 @@
   end
 
   def test_finalizer_does_not_unlink_if_already_unlinked
+    skip "on Windows, unlink is always delayed" if /mswin|mingw/ =~ RUBY_PLATFORM
     assert_in_out_err('-rtempfile', <<-'EOS') do |(filename,*), (error,*)|
 file = Tempfile.new('foo')
 path = file.path

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

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