File tree 3 files changed +6
-0
lines changed 3 files changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -18,6 +18,7 @@ def teardown
18
18
19
19
def test_check_files
20
20
skip "assumes UNIX permission model" if /mswin|mingw/ =~ RUBY_PLATFORM
21
+ skip "assumes that euid is not root" if Process . euid == 0
21
22
22
23
out , err = capture_io do
23
24
temp_dir do
Original file line number Diff line number Diff line change @@ -350,6 +350,7 @@ def test_parse_file_encoding
350
350
351
351
def test_parse_file_forbidden
352
352
skip 'chmod not supported' if Gem . win_platform?
353
+ skip "assumes that euid is not root" if Process . euid == 0
353
354
354
355
@rdoc . store = RDoc ::Store . new
355
356
Original file line number Diff line number Diff line change @@ -200,6 +200,8 @@ def test_remove
200
200
201
201
def test_remove_unwritable
202
202
skip 'chmod not supported' if Gem . win_platform?
203
+ skip "assumes that euid is not root" if Process . euid == 0
204
+
203
205
FileUtils . mkdir_p @a . base_dir
204
206
FileUtils . chmod 0 , @a . base_dir
205
207
@@ -228,6 +230,8 @@ def test_setup
228
230
229
231
def test_setup_unwritable
230
232
skip 'chmod not supported' if Gem . win_platform?
233
+ skip "assumes that euid is not root" if Process . euid == 0
234
+
231
235
FileUtils . mkdir_p @a . doc_dir
232
236
FileUtils . chmod 0 , @a . doc_dir
233
237
You can’t perform that action at this time.
0 commit comments