summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNobuyoshi Nakada <nobu@ruby-lang.org>2020-06-05 10:20:38 +0900
committerNobuyoshi Nakada <nobu@ruby-lang.org>2020-06-05 10:20:38 +0900
commit449b62ba0115fbe054e8f5e3a36f849e47e0f4a1 (patch)
tree7b65226c368c46addace2abf791cd9bdfa0c06a7
parent073ff7397255c0827463759952982ad901fce7e2 (diff)
Skip tests which do not work until installed when load-relative
-rw-r--r--test/rubygems/test_require.rb3
1 files changed, 3 insertions, 0 deletions
diff --git a/test/rubygems/test_require.rb b/test/rubygems/test_require.rb
index 6ddb97d8cb..5b11b5cebb 100644
--- a/test/rubygems/test_require.rb
+++ b/test/rubygems/test_require.rb
@@ -151,6 +151,7 @@ class TestGemRequire < Gem::TestCase
def test_dash_i_respects_default_library_extension_priority
skip "extensions don't quite work on jruby" if Gem.java_platform?
+ skip "not installed yet" unless RbConfig::TOPDIR
dash_i_ext_arg = util_install_extension_file('a')
dash_i_lib_arg = util_install_ruby_file('a')
@@ -252,6 +253,8 @@ class TestGemRequire < Gem::TestCase
stdlib one is already in $LOADED_FEATURES?. Reproducible by running the
spaceship_specific_file test before this one" if java_platform?
+ skip "not installed yet" unless RbConfig::TOPDIR
+
lib_dir = File.expand_path("../../lib", File.dirname(__FILE__))
rubylibdir = File.realdirpath(RbConfig::CONFIG["rubylibdir"])
if rubylibdir == lib_dir