summaryrefslogtreecommitdiff
path: root/test/rubygems/test_gem_ext_builder.rb
diff options
context:
space:
mode:
authorBenoit Daloze <eregontp@gmail.com>2020-04-22 22:17:50 +0200
committerHiroshi SHIBATA <hsbt@ruby-lang.org>2020-06-05 07:32:42 +0900
commit345461018da1ba5a6aa5b14762e7d8d159f864c1 (patch)
tree493f2ddc9a338ce050815326576adbd82e0e4464 /test/rubygems/test_gem_ext_builder.rb
parent5f0e84ba8df4faf5f58882958a79a794b95e94c8 (diff)
[rubygems/rubygems] Relax test to still check we're calling the expected Ruby
* But not enforce that error looks like /full/path/to/ruby/bin/ruby: No such file or directory but instead allow truffleruby: No such file or directory A typical output for gem_make.out looks like: current directory: /.../rubygems/tmp/test_rubygems_112388/gemhome/gems/a-2 /.../ruby-2.6.6/bin/ruby -I /.../rubygems/lib -r ./siteconf20200422-112388-nyrcy0.rb extconf.rb '' /.../ruby-2.6.6/bin/ruby: No such file or directory -- extconf.rb (LoadError) https://github.com/rubygems/rubygems/commit/e6e08882cc
Notes
Notes: Merged: https://github.com/ruby/ruby/pull/3184
Diffstat (limited to 'test/rubygems/test_gem_ext_builder.rb')
-rw-r--r--test/rubygems/test_gem_ext_builder.rb6
1 files changed, 1 insertions, 5 deletions
diff --git a/test/rubygems/test_gem_ext_builder.rb b/test/rubygems/test_gem_ext_builder.rb
index 5727077fd2..d690569040 100644
--- a/test/rubygems/test_gem_ext_builder.rb
+++ b/test/rubygems/test_gem_ext_builder.rb
@@ -233,15 +233,11 @@ install:
gem_make_out = File.join @spec.extension_dir, 'gem_make.out'
cmd_make_out = File.read(gem_make_out)
- assert_match %r{#{Regexp.escape Gem.ruby}.* extconf\.rb}, cmd_make_out
+ assert_match %r{#{Regexp.escape Gem.ruby} .* extconf\.rb}, cmd_make_out
assert_match %r{: No such file}, cmd_make_out
refute_path_exists @spec.gem_build_complete_path
- skip "Gem.ruby is not the name of the binary being run in the end" \
- unless cmd_make_out.include? "#{Gem.ruby}:"
-
- assert_match %r{#{Regexp.escape Gem.ruby}: No such file}, cmd_make_out
assert_equal cwd, Dir.pwd
end