From 97596f36bc4ce34b8cc84bc8649ca26fe0f73d66 Mon Sep 17 00:00:00 2001 From: usa Date: Wed, 26 May 2010 06:37:08 +0000 Subject: * test/test_tempfile.rb: skip some tests on Windows because unlinking is always delayed till closed. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28019 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- test/test_tempfile.rb | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'test/test_tempfile.rb') diff --git a/test/test_tempfile.rb b/test/test_tempfile.rb index 7e14e11421..b0c0703a6a 100644 --- a/test/test_tempfile.rb +++ b/test/test_tempfile.rb @@ -86,6 +86,7 @@ class TestTempfile < Test::Unit::TestCase 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 @@ class TestTempfile < Test::Unit::TestCase 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 @@ class TestTempfile < Test::Unit::TestCase 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 @@ class TestTempfile < Test::Unit::TestCase 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 -- cgit v1.2.3