diff options
author | hsbt <hsbt@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2014-08-12 04:36:31 +0000 |
---|---|---|
committer | hsbt <hsbt@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2014-08-12 04:36:31 +0000 |
commit | ac210750df46627b629eb6e7573c42fee21d8d4d (patch) | |
tree | 36be603f6963fdf922f4b3fa6ca6a21f7e64048a /test/fileutils | |
parent | d1075b72c819ee537bde8a302340c4b837402a76 (diff) | |
download | ruby-ac210750df46627b629eb6e7573c42fee21d8d4d.tar.gz |
* 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
Diffstat (limited to 'test/fileutils')
-rw-r--r-- | test/fileutils/test_fileutils.rb | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/test/fileutils/test_fileutils.rb b/test/fileutils/test_fileutils.rb index dd6f605ddb..9263fe0180 100644 --- a/test/fileutils/test_fileutils.rb +++ b/test/fileutils/test_fileutils.rb @@ -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 |