diff options
author | Yusuke Endoh <mame@ruby-lang.org> | 2022-08-30 16:02:02 +0900 |
---|---|---|
committer | git <svn-admin@ruby-lang.org> | 2022-11-07 11:25:25 +0000 |
commit | 72c7dba436a5ebb53dfb37f3e400e84b0c2f9f45 (patch) | |
tree | 27a3e6bf8f33d19f5a281ae48fbc2dd7d098e216 /test | |
parent | 33bc398b731d699cbdd37110240dd54df15a8f9c (diff) |
[ruby/fileutils] Revert "FileUtils.rm* methods swallows only Errno::ENOENT when force is true"
This reverts commit https://github.com/ruby/fileutils/commit/fa65d676ece9.
This caused some incompatibility problems in real-world cases.
https://bugs.ruby-lang.org/issues/18784#change-98927
https://bugs.ruby-lang.org/issues/18784#change-98967
https://github.com/ruby/fileutils/commit/42983c2553
Diffstat (limited to 'test')
-rw-r--r-- | test/fileutils/test_fileutils.rb | 20 |
1 files changed, 0 insertions, 20 deletions
diff --git a/test/fileutils/test_fileutils.rb b/test/fileutils/test_fileutils.rb index bce7271a3b..05ba8d184a 100644 --- a/test/fileutils/test_fileutils.rb +++ b/test/fileutils/test_fileutils.rb @@ -1822,26 +1822,6 @@ cd - assert_file_not_exist 'tmpdatadir' end - def test_rm_rf_no_permissions - check_singleton :rm_rf - - return if /mswin|mingw/ =~ RUBY_PLATFORM - - mkdir 'tmpdatadir' - touch 'tmpdatadir/tmpdata' - chmod "-x", 'tmpdatadir' - - begin - assert_raise Errno::EACCES do - rm_rf 'tmpdatadir' - end - - assert_file_exist 'tmpdatadir' - ensure - chmod "+x", 'tmpdatadir' - end - end - def test_rmdir check_singleton :rmdir |