summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorusa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2010-05-26 06:37:08 +0000
committerusa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2010-05-26 06:37:08 +0000
commit97596f36bc4ce34b8cc84bc8649ca26fe0f73d66 (patch)
treee328f144ebed33c67f4f52675382d359c44573ad /test
parent93bbd7869c60781094507babd761cd4fb191d58b (diff)
* 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
Diffstat (limited to 'test')
-rw-r--r--test/test_tempfile.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/test/test_tempfile.rb b/test/test_tempfile.rb
index 7e14e114211..b0c0703a6a3 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