diff options
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | test/test_find.rb | 2 |
2 files changed, 6 insertions, 1 deletions
@@ -1,3 +1,8 @@ +Mon Mar 3 13:27:35 2014 NAKAMURA Usaku <usa@ruby-lang.org> + + * test/test_find.rb (TestFind#test_unsearchable_dir): ruby cannot make + directory unreachable by owner on Windows. + Mon Mar 3 08:10:04 2014 Eric Wong <e@80x24.org> * vm_method.c (rb_method_entry_get_without_cache): disable GMC diff --git a/test/test_find.rb b/test/test_find.rb index 8bd67829d3..af0cb2dc95 100644 --- a/test/test_find.rb +++ b/test/test_find.rb @@ -130,13 +130,13 @@ class TestFind < Test::Unit::TestCase Find.find(d, ignore_error: true) {|f| a << f } assert_equal([d, dir, file], a) + skip "no meaning test on Windows" if /mswin|mingw/ =~ RUBY_PLATFORM a = [] assert_raise_with_message(Errno::EACCES, /#{Regexp.quote(file)}/) do Find.find(d, ignore_error: false) {|f| a << f } end 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) |