summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorusa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2010-05-25 07:03:31 +0000
committerusa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2010-05-25 07:03:31 +0000
commit20811146004fe487b372a24445f5e8fa38ca4eeb (patch)
treef8062920d246b9e2c0b29b0dbc5cd0ae8bf46246 /test
parent847a78516958ff448bc4ec58cb6a101fcda708e1 (diff)
* 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
Diffstat (limited to 'test')
-rw-r--r--test/test_find.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/test/test_find.rb b/test/test_find.rb
index 677a7e14bb..f6e7f7a13d 100644
--- a/test/test_find.rb
+++ b/test/test_find.rb
@@ -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)