Permalink
Browse files

* 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
  • Loading branch information...
1 parent 847a785 commit 20811146004fe487b372a24445f5e8fa38ca4eeb @unak unak committed May 25, 2010
Showing with 2 additions and 0 deletions.
  1. +2 −0 test/test_find.rb
View
@@ -91,6 +91,7 @@ def test_countdown3
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 @@ def test_unsearchable_dir
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)

0 comments on commit 2081114

Please sign in to comment.