Project

General

Profile

Actions

Bug #6025

closed

IRB test: failure caused by non-guarded completion test

Added by luislavena (Luis Lavena) almost 13 years ago. Updated almost 13 years ago.

Status:
Closed
Target version:
ruby -v:
ruby 1.9.3p105 (2012-02-13 revision 34579) [i386-mingw32]
Backport:
[ruby-core:42632]

Description

Hello,

While testing for 1.9.3-p105 release, found the following test fail:

 65) Failure:
test_nonstring_module_name(TestIRB::TestCompletion) [C:/Users/Luis/Projects/oss/ruby/test/irb/test_completion.rb:13]:
[ruby-core:42244].
<[]> expected but was
<["C:/Users/Luis/Projects/oss/ruby/lib/rubygems/custom_require.rb:36:in `require': cannot load such
file -- readline (LoadError)",
 "\tfrom C:/Users/Luis/Projects/oss/ruby/lib/rubygems/custom_require.rb:36:in `require'",
 "\tfrom C:/Users/Luis/Projects/oss/ruby/lib/irb/completion.rb:9:in `'",
 "\tfrom C:/Users/Luis/Projects/oss/ruby/lib/rubygems/custom_require.rb:36:in `require'",
 "\tfrom C:/Users/Luis/Projects/oss/ruby/lib/rubygems/custom_require.rb:36:in `require'"]>.

RubyInstaller builds do not include GNU Readline and instead uses rb-readline replacement.

It fails to load it's replacement and because of that, fails to load and complete the test.

A guard against it perhaps needs to be implemented.

Ruby 1.9.3-p0 did not present this failure.

Thank you

Actions

Also available in: Atom PDF

Like0
Like0