diff options
author | usa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2011-04-04 02:51:17 +0000 |
---|---|---|
committer | usa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2011-04-04 02:51:17 +0000 |
commit | 8eb92a671d6d9fd12b5beebc945e949633e5be6a (patch) | |
tree | e40ccbb0d77bc36dc582c416c6549503676014fe /test/test_tempfile.rb | |
parent | 6a06e94046401e861ecb3f88b10b22d2c85aac14 (diff) | |
download | ruby-8eb92a671d6d9fd12b5beebc945e949633e5be6a.tar.gz |
* test/test_tempfile.rb: simply ignore platform depedent testcases
instead of skipping.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31235 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/test_tempfile.rb')
-rw-r--r-- | test/test_tempfile.rb | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/test/test_tempfile.rb b/test/test_tempfile.rb index 1055bd45d8..1462a981f7 100644 --- a/test/test_tempfile.rb +++ b/test/test_tempfile.rb @@ -90,7 +90,6 @@ 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 @@ -104,7 +103,7 @@ class TestTempfile < Test::Unit::TestCase 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 @@ 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 @@ -134,7 +132,7 @@ class TestTempfile < Test::Unit::TestCase 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 @@ 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 @@ -157,10 +154,9 @@ class TestTempfile < Test::Unit::TestCase 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 @@ File.open(path, "w").close end assert_nil error end - end + end unless /mswin|mingw/ =~ RUBY_PLATFORM def test_close_does_not_make_path_nil t = tempfile("foo") |