Cannot run application tests (minitest) with bundle exec jruby -X+O -S rake
---------------------------------------------------------------------------

                 Key: JRUBY-5952
                 URL: https://jira.codehaus.org/browse/JRUBY-5952
             Project: JRuby
          Issue Type: Bug
    Affects Versions: JRuby 1.6.2
         Environment: OSX Lion 64-bit, RVM 1.6.16
            Reporter: Kyle Shipley
            Assignee: Thomas E Enebo


I posted a description of my issue at 
http://stackoverflow.com/questions/6865906/jruby-minitest-failing-because-of-objectspace.
The gist of it:

Minitest, like Test::Unit, uses ObjectSpace.each_object to reflect on which 
tests to run. When running any variation of the command

bundle exec jruby -X+O -S rake

that I could think of, I see the following stack trace:

RuntimeError: ObjectSpace is disabled; each_object will only work with Class, 
pass -X+O to enable
each_object at org/jruby/RubyObjectSpace.java:167
     each at org/jruby/RubyEnumerator.java:189
     to_a at org/jruby/RubyEnumerable.java:375
      AWS at 
/Users/kshipley/.rvm/gems/jruby-1.6.2@split/bundler/gems/papi-38fc7d34a33d/lib/papi/aws.rb:1476
     Papi at 
/Users/kshipley/.rvm/gems/jruby-1.6.2@split/bundler/gems/papi-38fc7d34a33d/lib/papi/aws.rb:6
   (root) at 
/Users/kshipley/.rvm/gems/jruby-1.6.2@split/bundler/gems/papi-38fc7d34a33d/lib/papi/aws.rb:5
  require at org/jruby/RubyKernel.java:1038
   (root) at 
/Users/kshipley/.rvm/gems/jruby-1.6.2@split/bundler/gems/papi-38fc7d34a33d/lib/papi/aws.rb:157
  require at org/jruby/RubyKernel.java:1038
  require at 
/Users/kshipley/.rvm/gems/jruby-1.6.2@split/bundler/gems/papi-38fc7d34a33d/lib/papi.rb:68
     each at org/jruby/RubyArray.java:1602
  require at 
/Users/kshipley/.rvm/gems/jruby-1.6.2@global/gems/bundler-1.0.15/lib/bundler/runtime.rb:66
     each at org/jruby/RubyArray.java:1602
  require at 
/Users/kshipley/.rvm/gems/jruby-1.6.2@global/gems/bundler-1.0.15/lib/bundler/runtime.rb:55
  require at 
/Users/kshipley/.rvm/gems/jruby-1.6.2@global/gems/bundler-1.0.15/lib/bundler.rb:120
   (root) at /Users/kshipley/work/src/split/config/environment.rb:5
  require at org/jruby/RubyKernel.java:1038
   (root) at /Users/kshipley/work/src/split/config/environment.rb:3
  require at org/jruby/RubyKernel.java:1038
   (root) at /Users/kshipley/work/src/split/test/test_helper.rb:1
     load at org/jruby/RubyKernel.java:1063
 __file__ at 
/Users/kshipley/.rvm/gems/jruby-1.6.2@split/gems/rake-0.8.7/lib/rake/rake_test_loader.rb:5
     each at org/jruby/RubyArray.java:1602
   (root) at 
/Users/kshipley/.rvm/gems/jruby-1.6.2@split/gems/rake-0.8.7/lib/rake/rake_test_loader.rb:5
rake aborted!

I'm new to JRuby, so I'm not sure if I'm just screwing up the command or if 
there's actually a bug here. Charles told me to enter it here.

I recently installed Lion, so I'm currently reinstalling XCode and seeing if a 
new version of JRuby compiled on Lion solves my issue. (Doesn't seem related to 
me, but worth mentioning.)

Thanks!

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email


Reply via email to