1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

Skip tests which do not work until installed when load-relative

This commit is contained in:
Nobuyoshi Nakada 2020-06-05 10:20:38 +09:00
parent 073ff73972
commit 449b62ba01
No known key found for this signature in database
GPG key ID: 7CD2805BFA3770C6

View file

@ -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