summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-10-13 03:42:39 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-10-13 03:42:39 +0000
commite8da08364c374d5f41bf5057b195d9b2f63bd308 (patch)
treed306abc897125482642974f69edd5aa26781a70d
parent0d3aa6b8213cdb499edfea1d8edde90d40d37d87 (diff)
test_rake_clean.rb: skip on Windows
* test/rake/test_rake_clean.rb (create_undeletable_file): skip when permission to delete files is different. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43271 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r--test/rake/test_rake_clean.rb8
1 files changed, 7 insertions, 1 deletions
diff --git a/test/rake/test_rake_clean.rb b/test/rake/test_rake_clean.rb
index a6539fb..5e38950 100644
--- a/test/rake/test_rake_clean.rb
+++ b/test/rake/test_rake_clean.rb
@@ -32,7 +32,13 @@ class TestRakeClean < Rake::TestCase
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