mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* test/test_find.rb: skip some tests on Windows.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28008 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
847a785169
commit
2081114600
1 changed files with 2 additions and 0 deletions
|
@ -91,6 +91,7 @@ class TestFind < Test::Unit::TestCase
|
|||
end
|
||||
|
||||
def test_unreadable_dir
|
||||
skip "no meaning test on Windows" if /mswin|mingw/ =~ RUBY_PLATFORM
|
||||
Dir.mktmpdir {|d|
|
||||
Dir.mkdir(dir = "#{d}/dir")
|
||||
File.open(file = "#{dir}/foo", "w"){}
|
||||
|
@ -114,6 +115,7 @@ class TestFind < Test::Unit::TestCase
|
|||
a = []
|
||||
Find.find(d) {|f| a << f }
|
||||
assert_equal([d, dir, file], a)
|
||||
skip "no meaning test on Windows" if /mswin|mingw/ =~ RUBY_PLATFORM
|
||||
assert_raise(Errno::EACCES) { File.lstat(file) }
|
||||
ensure
|
||||
File.chmod(0700, dir)
|
||||
|
|
Loading…
Reference in a new issue