mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
parent
62cecea073
commit
7983fb9658
1 changed files with 7 additions and 8 deletions
|
@ -85,14 +85,13 @@ module TestIRB
|
||||||
pend if RUBY_ENGINE == 'truffleruby'
|
pend if RUBY_ENGINE == 'truffleruby'
|
||||||
bug17623 = '[ruby-core:102468]'
|
bug17623 = '[ruby-core:102468]'
|
||||||
bundle_exec = ENV.key?('BUNDLE_GEMFILE') ? ['-rbundler/setup'] : []
|
bundle_exec = ENV.key?('BUNDLE_GEMFILE') ? ['-rbundler/setup'] : []
|
||||||
if File.exist?('./exe/irb')
|
top_srcdir = "#{__dir__}/../.."
|
||||||
irb_path = './exe/irb'
|
irb_path = nil
|
||||||
elsif File.exist?('./libexec/irb')
|
%w[exe libexec].find do |dir|
|
||||||
irb_path = './libexec/irb'
|
irb_path = "#{top_srcdir}/#{dir}/irb"
|
||||||
else
|
File.exist?(irb_path)
|
||||||
omit 'irb command not found'
|
end or omit 'irb command not found'
|
||||||
end
|
assert_in_out_err(bundle_exec + ['-W0', "-C#{top_srcdir}", '-e', <<~RUBY , '--', '-f', '--'], 'binding.local_variables', /\[:_\]/, [], bug17623)
|
||||||
assert_in_out_err(bundle_exec + ['-W0', '-e', <<~RUBY , '--', '-f', '--'], 'binding.local_variables', /\[:_\]/, [], bug17623)
|
|
||||||
version = 'xyz' # typical rubygems loading file
|
version = 'xyz' # typical rubygems loading file
|
||||||
load('#{irb_path}')
|
load('#{irb_path}')
|
||||||
RUBY
|
RUBY
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue