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

ruby-changes:31192

From: nobu <ko1@a...>
Date: Sun, 13 Oct 2013 12:42:45 +0900 (JST)
Subject: [ruby-changes:31192] nobu:r43271 (trunk): test_rake_clean.rb: skip on Windows

nobu	2013-10-13 12:42:39 +0900 (Sun, 13 Oct 2013)

  New Revision: 43271

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

  Log:
    test_rake_clean.rb: skip on Windows
    
    * test/rake/test_rake_clean.rb (create_undeletable_file): skip when
      permission to delete files is different.

  Modified files:
    trunk/test/rake/test_rake_clean.rb
Index: test/rake/test_rake_clean.rb
===================================================================
--- test/rake/test_rake_clean.rb	(revision 43270)
+++ test/rake/test_rake_clean.rb	(revision 43271)
@@ -32,7 +32,13 @@ class TestRakeClean < Rake::TestCase https://github.com/ruby/ruby/blob/trunk/test/rake/test_rake_clean.rb#L32
     FileUtils.touch(file_name)
     FileUtils.chmod(0, file_name)
     FileUtils.chmod(0, dir_name)
-    file_name
+    begin
+      FileUtils.chmod(0644, file_name)
+    rescue
+      file_name
+    else
+      skip "Permission to delete files is different on thie system"
+    end
   end
 
   def remove_undeletable_file

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

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