summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorusa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2010-05-25 07:12:49 +0000
committerusa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2010-05-25 07:12:49 +0000
commit2daff3cd664d721c9b662c2b80179b63eafdac22 (patch)
tree62207fd84282b306ca7bf8f48302ab14bfb10c70 /test
parent41767a145baf46431690c62b95f1be80f8c213fc (diff)
merge from trunk (r28008)
* test/test_find.rb: skip some tests on Windows. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_2@28009 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)