From b496220a1f70f8393070ffebcb883c7c5fc036d7 Mon Sep 17 00:00:00 2001 From: mame Date: Wed, 10 Jan 2018 10:39:09 +0000 Subject: skip some tests so that no failure occurs in root privilege Some tests had failed on `sudo make test-all`, mainly because root can access any files regardless of permission. This change adds `skip` guards into such tests. Note that almost all tests in which `skip` guards is added, already have "windows" guard. This is because there is no support to avoid read access by owner on Windows. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@61758 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- test/irb/test_workspace.rb | 1 + 1 file changed, 1 insertion(+) (limited to 'test/irb') diff --git a/test/irb/test_workspace.rb b/test/irb/test_workspace.rb index 0dd46175c8..0795b17e09 100644 --- a/test/irb/test_workspace.rb +++ b/test/irb/test_workspace.rb @@ -34,6 +34,7 @@ module TestIRB def test_code_around_binding_with_existing_unreadable_file skip 'chmod cannot make file unreadable on windows' if windows? + skip 'skipped in root privilege' if Process.uid == 0 Tempfile.create do |f| code = "IRB::WorkSpace.new(binding)\n" -- cgit v1.2.3