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:
parent
073ff73972
commit
449b62ba01
1 changed files with 3 additions and 0 deletions
|
@ -151,6 +151,7 @@ class TestGemRequire < Gem::TestCase
|
||||||
|
|
||||||
def test_dash_i_respects_default_library_extension_priority
|
def test_dash_i_respects_default_library_extension_priority
|
||||||
skip "extensions don't quite work on jruby" if Gem.java_platform?
|
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_ext_arg = util_install_extension_file('a')
|
||||||
dash_i_lib_arg = util_install_ruby_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
|
stdlib one is already in $LOADED_FEATURES?. Reproducible by running the
|
||||||
spaceship_specific_file test before this one" if java_platform?
|
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__))
|
lib_dir = File.expand_path("../../lib", File.dirname(__FILE__))
|
||||||
rubylibdir = File.realdirpath(RbConfig::CONFIG["rubylibdir"])
|
rubylibdir = File.realdirpath(RbConfig::CONFIG["rubylibdir"])
|
||||||
if rubylibdir == lib_dir
|
if rubylibdir == lib_dir
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue