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

ruby-changes:16070

From: usa <ko1@a...>
Date: Wed, 26 May 2010 15:37:15 +0900 (JST)
Subject: [ruby-changes:16070] Ruby:r28019 (trunk): * test/test_tempfile.rb: skip some tests on Windows because unlinking is always

usa	2010-05-26 15:37:08 +0900 (Wed, 26 May 2010)

  New Revision: 28019

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

  Log:
    * test/test_tempfile.rb: skip some tests on Windows because unlinking is always
      delayed till closed.

  Modified files:
    trunk/test/test_tempfile.rb

Index: test/test_tempfile.rb
===================================================================
--- test/test_tempfile.rb	(revision 28018)
+++ test/test_tempfile.rb	(revision 28019)
@@ -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/

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