summaryrefslogtreecommitdiff
path: root/test/rubygems/test_gem_util.rb
diff options
context:
space:
mode:
authorHiroshi SHIBATA <hsbt@ruby-lang.org>2021-05-11 12:27:07 +0900
committerHiroshi SHIBATA <hsbt@ruby-lang.org>2021-05-28 12:33:16 +0900
commite487ba7ddab9dd46e95a4cff222cf08471dbd817 (patch)
tree0ed57662a988f50e3bb0317915a381ca5a27714c /test/rubygems/test_gem_util.rb
parenta634ef53764e9160cb984d01e92e3e596bf41dae (diff)
[rubygems/rubygems] Use pend instead of skip
Diffstat (limited to 'test/rubygems/test_gem_util.rb')
-rw-r--r--test/rubygems/test_gem_util.rb8
1 files changed, 4 insertions, 4 deletions
diff --git a/test/rubygems/test_gem_util.rb b/test/rubygems/test_gem_util.rb
index 47a550fd9d..ce41146087 100644
--- a/test/rubygems/test_gem_util.rb
+++ b/test/rubygems/test_gem_util.rb
@@ -4,7 +4,7 @@ require 'rubygems/util'
class TestGemUtil < Gem::TestCase
def test_class_popen
- skip "popen with a block does not behave well on jruby" if Gem.java_platform?
+ pend "popen with a block does not behave well on jruby" if Gem.java_platform?
assert_equal "0\n", Gem::Util.popen(*ruby_with_rubygems_in_load_path, '-e', 'p 0')
assert_raise Errno::ECHILD do
@@ -13,7 +13,7 @@ class TestGemUtil < Gem::TestCase
end
def test_silent_system
- skip if Gem.java_platform?
+ pend if Gem.java_platform?
Gem::Deprecate.skip_during do
out, err = capture_output do
Gem::Util.silent_system(*ruby_with_rubygems_in_load_path, '-e', 'puts "hello"; warn "hello"')
@@ -35,14 +35,14 @@ class TestGemUtil < Gem::TestCase
end
def test_traverse_parents_does_not_crash_on_permissions_error
- skip 'skipped on MS Windows (chmod has no effect)' if win_platform? || java_platform?
+ pend 'skipped on MS Windows (chmod has no effect)' if win_platform? || java_platform?
FileUtils.mkdir_p 'd/e/f'
# remove 'execute' permission from "e" directory and make it
# impossible to cd into it and its children
FileUtils.chmod(0666, 'd/e')
- skip 'skipped in root privilege' if Process.uid.zero?
+ pend 'skipped in root privilege' if Process.uid.zero?
paths = Gem::Util.traverse_parents('d/e/f').to_a