From 449b62ba0115fbe054e8f5e3a36f849e47e0f4a1 Mon Sep 17 00:00:00 2001 From: Nobuyoshi Nakada Date: Fri, 5 Jun 2020 10:20:38 +0900 Subject: [PATCH] Skip tests which do not work until installed when load-relative --- test/rubygems/test_require.rb | 3 +++ 1 file changed, 3 insertions(+) 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