1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

* 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
This commit is contained in:
usa 2011-04-04 02:51:17 +00:00
parent 6a06e94046
commit 8eb92a671d
2 changed files with 9 additions and 8 deletions

View file

@ -1,3 +1,8 @@
Mon Apr 4 11:50:40 2011 NAKAMURA Usaku <usa@ruby-lang.org>
* test/test_tempfile.rb: simply ignore platform depedent testcases
instead of skipping.
Sun Apr 3 22:52:22 2011 CHIKANAGA Tomoyuki <nagachika00@gmail.com>
* ext/syslog/syslog.c: improve rdoc.

View file

@ -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")