ruby-changes:61551
From: Benoit <ko1@a...>
Date: Fri, 5 Jun 2020 07:34:32 +0900 (JST)
Subject: [ruby-changes:61551] 5c1957e95c (master): [rubygems/rubygems] Simplify #warn test to not rely on the effect of -C on -I
https://git.ruby-lang.org/ruby.git/commit/?id=5c1957e95c From 5c1957e95c649659b0e5abb184393c4c7ee34cd7 Mon Sep 17 00:00:00 2001 From: Benoit Daloze <eregontp@g...> Date: Wed, 22 Apr 2020 20:13:30 +0200 Subject: [rubygems/rubygems] Simplify #warn test to not rely on the effect of -C on -I https://github.com/rubygems/rubygems/commit/382642a0d4 diff --git a/test/rubygems/test_require.rb b/test/rubygems/test_require.rb index af95320..43765ab 100644 --- a/test/rubygems/test_require.rb +++ b/test/rubygems/test_require.rb @@ -562,11 +562,11 @@ class TestGemRequire < Gem::TestCase https://github.com/ruby/ruby/blob/trunk/test/rubygems/test_require.rb#L562 File.write(dir + "/sub.rb", "#{prefix}warn 'uplevel', 'test', uplevel: 1\n") File.write(dir + "/main.rb", "require 'sub'\n") _, err = capture_subprocess_io do - system(*ruby_with_rubygems_in_load_path, "-w", "--disable=gems", "-C", dir, "-I.", "main.rb") + system(*ruby_with_rubygems_in_load_path, "-w", "--disable=gems", "-C", dir, "-I", dir, "main.rb") end assert_match(/main\.rb:1: warning: uplevel\ntest\n$/, err) _, err = capture_subprocess_io do - system(*ruby_with_rubygems_in_load_path, "-w", "--enable=gems", "-C", dir, "-I.", "main.rb") + system(*ruby_with_rubygems_in_load_path, "-w", "--enable=gems", "-C", dir, "-I", dir, "main.rb") end assert_match(/main\.rb:1: warning: uplevel\ntest\n$/, err) end -- cgit v0.10.2 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/