From 20811146004fe487b372a24445f5e8fa38ca4eeb Mon Sep 17 00:00:00 2001 From: usa Date: Tue, 25 May 2010 07:03:31 +0000 Subject: * 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 --- test/test_find.rb | 2 ++ 1 file changed, 2 insertions(+) (limited to 'test/test_find.rb') 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) -- cgit v1.2.3