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

ruby-changes:19196

From: usa <ko1@a...>
Date: Mon, 4 Apr 2011 11:51:28 +0900 (JST)
Subject: [ruby-changes:19196] Ruby:r31235 (trunk): * test/test_tempfile.rb: simply ignore platform depedent testcases

usa	2011-04-04 11:51:17 +0900 (Mon, 04 Apr 2011)

  New Revision: 31235

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

  Log:
    * test/test_tempfile.rb: simply ignore platform depedent testcases
      instead of skipping.

  Modified files:
    trunk/ChangeLog
    trunk/test/test_tempfile.rb

Index: ChangeLog
===================================================================
--- ChangeLog	(revision 31234)
+++ ChangeLog	(revision 31235)
@@ -1,3 +1,8 @@
+Mon Apr  4 11:50:40 2011  NAKAMURA Usaku  <usa@r...>
+
+	* test/test_tempfile.rb: simply ignore platform depedent testcases
+	  instead of skipping.
+
 Sun Apr  3 22:52:22 2011  CHIKANAGA Tomoyuki  <nagachika00@g...>
 
 	* ext/syslog/syslog.c: improve rdoc.
Index: test/test_tempfile.rb
===================================================================
--- test/test_tempfile.rb	(revision 31234)
+++ test/test_tempfile.rb	(revision 31235)
@@ -90,7 +90,6 @@
   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
@@ -104,7 +103,7 @@
       tempfile.close
       tempfile.unlink
     end
-  end
+  end unless /mswin|mingw/ =~ RUBY_PLATFORM
 
   def test_close_and_close_p
     t = tempfile("foo")
@@ -123,7 +122,6 @@
   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
@@ -134,7 +132,7 @@
     ensure
       File.unlink(path) rescue nil
     end
-  end
+  end unless /mswin|mingw/ =~ RUBY_PLATFORM
 
   def test_close_bang_works
     t = tempfile("foo")
@@ -146,7 +144,6 @@
   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
@@ -157,10 +154,9 @@
     ensure
       File.unlink(path) rescue nil
     end
-  end
+  end unless /mswin|mingw/ =~ RUBY_PLATFORM
 
   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
@@ -187,7 +183,7 @@
       end
       assert_nil error
     end
-  end
+  end unless /mswin|mingw/ =~ RUBY_PLATFORM
 
   def test_close_does_not_make_path_nil
     t = tempfile("foo")

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

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