mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
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
This commit is contained in:
parent
0d3aa6b821
commit
e8da08364c
1 changed files with 7 additions and 1 deletions
|
@ -32,7 +32,13 @@ class TestRakeClean < Rake::TestCase
|
||||||
FileUtils.touch(file_name)
|
FileUtils.touch(file_name)
|
||||||
FileUtils.chmod(0, file_name)
|
FileUtils.chmod(0, file_name)
|
||||||
FileUtils.chmod(0, dir_name)
|
FileUtils.chmod(0, dir_name)
|
||||||
|
begin
|
||||||
|
FileUtils.chmod(0644, file_name)
|
||||||
|
rescue
|
||||||
file_name
|
file_name
|
||||||
|
else
|
||||||
|
skip "Permission to delete files is different on thie system"
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
def remove_undeletable_file
|
def remove_undeletable_file
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue