[前][次][番号順一覧][スレッド一覧]

ruby-changes:33183

From: usa <ko1@a...>
Date: Mon, 3 Mar 2014 13:28:59 +0900 (JST)
Subject: [ruby-changes:33183] usa:r45262 (trunk): * test/test_find.rb (TestFind#test_unsearchable_dir): ruby cannot make

usa	2014-03-03 13:28:55 +0900 (Mon, 03 Mar 2014)

  New Revision: 45262

  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=45262

  Log:
    * test/test_find.rb (TestFind#test_unsearchable_dir): ruby cannot make
      directory unreachable by owner on Windows.

  Modified files:
    trunk/ChangeLog
    trunk/test/test_find.rb
Index: ChangeLog
===================================================================
--- ChangeLog	(revision 45261)
+++ ChangeLog	(revision 45262)
@@ -1,3 +1,8 @@ https://github.com/ruby/ruby/blob/trunk/ChangeLog#L1
+Mon Mar  3 13:27:35 2014  NAKAMURA Usaku  <usa@r...>
+
+	* 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@8...>
 
 	* vm_method.c (rb_method_entry_get_without_cache): disable GMC
Index: test/test_find.rb
===================================================================
--- test/test_find.rb	(revision 45261)
+++ test/test_find.rb	(revision 45262)
@@ -130,13 +130,13 @@ class TestFind < Test::Unit::TestCase https://github.com/ruby/ruby/blob/trunk/test/test_find.rb#L130
         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)

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]