From 3c831389c5e1523af5869d025f573ff043486b99 Mon Sep 17 00:00:00 2001 From: Jiaying Song Date: Thu, 17 Jul 2025 10:57:53 +0800 Subject: [PATCH] Skip test_rm_r_no_permissions test under root Skip the test_rm_r_no_permissions test under the root user, as deletion always succeeds. Signed-off-by: Jiaying Song --- test/fileutils/test_fileutils.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/fileutils/test_fileutils.rb b/test/fileutils/test_fileutils.rb index 1d7be69..ce5f25c 100644 --- a/test/fileutils/test_fileutils.rb +++ b/test/fileutils/test_fileutils.rb @@ -769,7 +769,7 @@ def test_rm_r_pathname def test_rm_r_no_permissions check_singleton :rm_rf - return if /mswin|mingw/ =~ RUBY_PLATFORM + return if /mswin|mingw/ =~ RUBY_PLATFORM || root_in_posix? mkdir 'tmpdatadir' touch 'tmpdatadir/tmpdata'