Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

spec/regression/JRUBY-5811_case_insensitive_loaded_features_spec.rb fails on case-insensitive filesystem #758

dmarcotte opened this issue May 23, 2013 · 2 comments


Copy link

@dmarcotte dmarcotte commented May 23, 2013

(Apologies in advance if this is some quirk specific to my machine; this is not a new test, so that's sort of the outcome I'm expecting)

ant test runs clean for me, but only if I comment out JRUBY-5811: jruby 1.9 fails to load irb works. It fails for me locally (OSX 10.7.5), complaining about a load error on the upcased filename:

$ bin/jruby spec/mspec/bin/mspec spec/regression/JRUBY-5811_case_insensitive_loaded_features_spec.rb
jruby (1.9.3p392) 2013-05-21 f03f754 on Java HotSpot(TM) 64-Bit Server VM 1.7.0_21-b12 [darwin-x86_64]

JRUBY-5811: jruby 1.9 fails to load irb works ERROR
LoadError: no such file to load -- /VAR/FOLDERS/M1/9FK3ZT7N5791KWBP7FMJ_QVHH55T8G/T/DUMMY20130523-98892-1SRZQI3.RB
org/jruby/ `require'
/Users/daniel.marcotte/workspace/code/jruby/lib/ruby/shared/rubygems/custom_require.rb:36:in `require'
/Users/daniel.marcotte/workspace/code/jruby/spec/regression/JRUBY-5811_case_insensitive_loaded_features_spec.rb:19:in `(root)'
org/jruby/ `instance_eval'
org/jruby/ `all?'
org/jruby/ `times'
org/jruby/ `each'
/Users/daniel.marcotte/workspace/code/jruby/spec/regression/JRUBY-5811_case_insensitive_loaded_features_spec.rb:3:in `(root)'
org/jruby/ `load'
org/jruby/ `instance_eval'
org/jruby/ `each'

Finished in 0.377000 seconds

1 file, 1 example, 0 expectations, 0 failures, 1 error

Interestingly, my 1.9.3 agrees that this should fail:

$ ruby spec/mspec/bin/mspec spec/regression/JRUBY-5811_case_insensitive_loaded_features_spec.rb
ruby 1.9.3p392 (2013-02-22 revision 39386) [x86_64-darwin11.4.2]

JRUBY-5811: jruby 1.9 fails to load irb works ERROR
LoadError: cannot load such file -- /VAR/FOLDERS/M1/9FK3ZT7N5791KWBP7FMJ_QVHH55T8G/T/DUMMY20130523-87265-1VUB9BH.RB
/Users/daniel.marcotte/.rvm/rubies/ruby-1.9.3-p392/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
/Users/daniel.marcotte/.rvm/rubies/ruby-1.9.3-p392/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
/Users/daniel.marcotte/workspace/code/jruby/spec/regression/JRUBY-5811_case_insensitive_loaded_features_spec.rb:19:in `block (2 levels) in <top (required)>'

Anyone else seeing this? (Would have to be Mac or Windows, this code path is skipped on case sensitive file systems)

@ghost ghost assigned nahi Jun 17, 2013
Copy link

@atambo atambo commented Jun 23, 2013

Fails for me as well on OSX 10.8.4.

./bin/jruby -S rspec spec/regression/JRUBY-5811_case_insensitive_loaded_features_spec.rb


  1) JRUBY-5811: jruby 1.9 fails to load irb works
     Failure/Error: (require @file.path.upcase).should == false
       no such file to load -- /VAR/FOLDERS/NC/RJZNLX0N6JG85LYLZLT2J6_40000GN/T/DUMMY20130623-31069-1L8UMV6.RB
     # ./spec/regression/JRUBY-5811_case_insensitive_loaded_features_spec.rb:19:in `(root)'

Finished in 0.075 seconds
1 example, 1 failure

Failed examples:

rspec ./spec/regression/JRUBY-5811_case_insensitive_loaded_features_spec.rb:13 # JRUBY-5811: jruby 1.9 fails to load irb works


@BanzaiMan BanzaiMan closed this Sep 3, 2013
@ghost ghost assigned BanzaiMan Sep 3, 2013
@BanzaiMan BanzaiMan reopened this Sep 3, 2013
Copy link

@BanzaiMan BanzaiMan commented Sep 3, 2013

I tracked this down a bit further. See commits leading up to (in particular 65c07ea) and notice that case-insensitive search of LOADED_FEATURES scanning was abandoned.

So this spec is no longer valid.


@BanzaiMan BanzaiMan closed this in bc3a712 Sep 3, 2013
mbj pushed a commit to mbj/jruby that referenced this issue Nov 8, 2013
When the file does not exist, it should raise LoadError.

Fixes jruby#758
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
4 participants