зеркало из https://github.com/github/ruby.git
* lib/fileutils.rb: enable to remove with non-owner directory.
[ruby-dev:45976] [Bug #6756] * test/fileutils/test_fileutils.rb: add testcase for #6756. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47150 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
Родитель
d1075b72c8
Коммит
ac210750df
|
@ -1,3 +1,9 @@
|
|||
Tue Aug 12 13:34:25 2014 SHIBATA Hiroshi <shibata.hiroshi@gmail.com>
|
||||
|
||||
* lib/fileutils.rb: enable to remove with non-owner directory.
|
||||
[ruby-dev:45976] [Bug #6756]
|
||||
* test/fileutils/test_fileutils.rb: add testcase for #6756.
|
||||
|
||||
Tue Aug 12 12:57:28 2014 SHIBATA Hiroshi <shibata.hiroshi@gmail.com>
|
||||
|
||||
* vm_exec.c: improve performance in ppc64 arch.
|
||||
|
|
|
@ -1489,6 +1489,7 @@ module FileUtils
|
|||
end
|
||||
end
|
||||
end
|
||||
ensure
|
||||
yield self
|
||||
end
|
||||
|
||||
|
|
|
@ -1499,6 +1499,14 @@ class TestFileUtils < Test::Unit::TestCase
|
|||
|
||||
def test_rm_rf
|
||||
check_singleton :rm_rf
|
||||
|
||||
return if /mswin|mingw/ =~ RUBY_PLATFORM
|
||||
|
||||
mkdir 'tmpdatadir'
|
||||
chmod 700, 'tmpdatadir'
|
||||
rm_rf 'tmpdatadir'
|
||||
|
||||
assert_file_not_exist 'tmpdatadir'
|
||||
end
|
||||
|
||||
def test_rmdir
|
||||
|
|
Загрузка…
Ссылка в новой задаче