ruby-changes:61569
From: Nobuyoshi <ko1@a...>
Date: Fri, 5 Jun 2020 10:21:19 +0900 (JST)
Subject: [ruby-changes:61569] 449b62ba01 (master): Skip tests which do not work until installed when load-relative
https://git.ruby-lang.org/ruby.git/commit/?id=449b62ba01 From 449b62ba0115fbe054e8f5e3a36f849e47e0f4a1 Mon Sep 17 00:00:00 2001 From: Nobuyoshi Nakada <nobu@r...> Date: Fri, 5 Jun 2020 10:20:38 +0900 Subject: Skip tests which do not work until installed when load-relative diff --git a/test/rubygems/test_require.rb b/test/rubygems/test_require.rb index 6ddb97d..5b11b5c 100644 --- a/test/rubygems/test_require.rb +++ b/test/rubygems/test_require.rb @@ -151,6 +151,7 @@ class TestGemRequire < Gem::TestCase https://github.com/ruby/ruby/blob/trunk/test/rubygems/test_require.rb#L151 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 https://github.com/ruby/ruby/blob/trunk/test/rubygems/test_require.rb#L253 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 -- cgit v0.10.2 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/