Hiro Asari created JRUBY-6443:
---------------------------------

             Summary: 'ant run-junit-interpreted-1.9' fails with 'uninitialized 
constant Gem::Requirement' error
                 Key: JRUBY-6443
                 URL: https://jira.codehaus.org/browse/JRUBY-6443
             Project: JRuby
          Issue Type: Bug
          Components: Miscellaneous
    Affects Versions: JRuby 1.6.7, JRuby 1.7
            Reporter: Hiro Asari


It is complaining about {{Gem::Requirement}}, but RubyGems is active, and this 
constant is supposed to be autoloaded.

Output follows:
{noformat}
$ ant test-interpreted-1.9
Buildfile: /Users/asari/Development/src/jruby/build.xml

init:

prepare-bin-jruby:

jar:

init:

create-dirs:

copy-resources:

update-constants:
     [echo] Updating Constants.java
     [echo] ...using git revision = 582458a, tzdata = 2010k
     [copy] Copying 1 file to 
/Users/asari/Development/src/jruby/src_gen/org/jruby/runtime

_uc_internal_:

prepare:

compile-annotation-binder:

compile-jruby:
      [apt] Since compiler setting isn't classic or modern, ignoring fork 
setting.
      [apt] Since compiler setting isn't classic or modern, ignoring fork 
setting.

emma:

instrument:

generate-method-classes:

_gmc_internal_:

generate-unsafe:

_gu_internal_:

compile:

unzip-native-libs:

jar-jruby:

add-emma-jars:

compile-test:
    [javac] Compiling 2 source files to 
/Users/asari/Development/src/jruby/build/classes/test

copy-test-files:

run-junit-interpreted-1.9:
     [echo] compile=OFF, jit.threshold=20, jit.maxsize=1000000000, jit.max=-1, 
objectspace=false threadpool=false reflection=false version=ruby1_9
    [junit] Testsuite: org.jruby.test.Ruby1_9TestSuite
    [junit] :1 warning: already initialized constant ARGV
    [junit] 
/Users/asari/Development/src/jruby/lib/ruby/shared/rubygems/custom_require.rb:36
 warning: already initialized constant CONFIG
    [junit] 
/Users/asari/Development/src/jruby/lib/ruby/shared/rubygems/custom_require.rb:36
 warning: already initialized constant RbConfig
    [junit] 
/Users/asari/Development/src/jruby/lib/ruby/shared/rubygems/custom_require.rb:36
 warning: already initialized constant CROSS_COMPILING
    [junit] 
/Users/asari/Development/src/jruby/lib/ruby/shared/rubygems/custom_require.rb:36
 warning: already initialized constant MAKEFILE_CONFIG
    [junit] 
/Users/asari/Development/src/jruby/lib/ruby/shared/rubygems/version.rb:148 
warning: already initialized constant VERSION_PATTERN
    [junit] 
/Users/asari/Development/src/jruby/lib/ruby/shared/rubygems/version.rb:149 
warning: already initialized constant ANCHORED_VERSION_PATTERN
    [junit] 
/Users/asari/Development/src/jruby/lib/ruby/shared/rubygems/requirement.rb:19 
warning: already initialized constant OPS
    [junit] 
/Users/asari/Development/src/jruby/lib/ruby/shared/rubygems/requirement.rb:30 
warning: already initialized constant PATTERN
    [junit] 
/Users/asari/Development/src/jruby/lib/ruby/shared/rubygems/requirement.rb:203 
warning: already initialized constant Requirement
    [junit] 
/Users/asari/Development/src/jruby/lib/ruby/gems/shared/gems/minitest-2.11.1/lib/minitest/unit.rb:58
 warning: already initialized constant UNDEFINED
    [junit] 
/Users/asari/Development/src/jruby/lib/ruby/gems/shared/gems/minitest-2.11.1/lib/minitest/unit.rb:64
 warning: already initialized constant WINDOZE
    [junit] 
/Users/asari/Development/src/jruby/lib/ruby/gems/shared/gems/minitest-2.11.1/lib/minitest/unit.rb:646
 warning: already initialized constant VERSION
    [junit] 
/Users/asari/Development/src/jruby/lib/ruby/gems/shared/gems/minitest-2.11.1/lib/minitest/unit.rb:1016
 warning: already initialized constant PASSTHROUGH_EXCEPTIONS
    [junit] 
/Users/asari/Development/src/jruby/lib/ruby/gems/shared/gems/minitest-2.11.1/lib/minitest/unit.rb:1019
 warning: already initialized constant SUPPORTS_INFO_SIGNAL
    [junit] /Users/asari/Development/src/jruby/lib/ruby/shared/rubygems.rb:9 
warning: already initialized constant QUICKLOADER_SUCKAGE
    [junit] /Users/asari/Development/src/jruby/lib/ruby/shared/rubygems.rb:10 
warning: already initialized constant GEM_PRELUDE_SUCKAGE
    [junit] /Users/asari/Development/src/jruby/lib/ruby/shared/rubygems.rb:121 
warning: already initialized constant VERSION
    [junit] /Users/asari/Development/src/jruby/lib/ruby/shared/rubygems.rb:138 
warning: already initialized constant RubyGemsVersion
    [junit] /Users/asari/Development/src/jruby/lib/ruby/shared/rubygems.rb:140 
warning: already initialized constant RbConfigPriorities
    [junit] /Users/asari/Development/src/jruby/lib/ruby/shared/rubygems.rb:157 
warning: already initialized constant RubyGemsPackageVersion
    [junit] /Users/asari/Development/src/jruby/lib/ruby/shared/rubygems.rb:159 
warning: already initialized constant RUBYGEMS_DIR
    [junit] /Users/asari/Development/src/jruby/lib/ruby/shared/rubygems.rb:166 
warning: already initialized constant WIN_PATTERNS
    [junit] /Users/asari/Development/src/jruby/lib/ruby/shared/rubygems.rb:1158 
warning: already initialized constant MARSHAL_SPEC_DIR
    [junit] 
/Users/asari/Development/src/jruby/lib/ruby/shared/rubygems/custom_require.rb:36
 warning: redefining constant Struct::Passwd
    [junit] 
/Users/asari/Development/src/jruby/lib/ruby/shared/rubygems/custom_require.rb:36
 warning: redefining constant Struct::Group
    [junit] Tests run: 1, Failures: 1, Errors: 0, Time elapsed: 2.479 sec
    [junit] 
    [junit] ------------- Standard Error -----------------
    [junit] :1 warning: already initialized constant ARGV
    [junit] 
/Users/asari/Development/src/jruby/lib/ruby/shared/rubygems/custom_require.rb:36
 warning: already initialized constant CONFIG
    [junit] 
/Users/asari/Development/src/jruby/lib/ruby/shared/rubygems/custom_require.rb:36
 warning: already initialized constant RbConfig
    [junit] 
/Users/asari/Development/src/jruby/lib/ruby/shared/rubygems/custom_require.rb:36
 warning: already initialized constant CROSS_COMPILING
    [junit] 
/Users/asari/Development/src/jruby/lib/ruby/shared/rubygems/custom_require.rb:36
 warning: already initialized constant MAKEFILE_CONFIG
    [junit] 
/Users/asari/Development/src/jruby/lib/ruby/shared/rubygems/version.rb:148 
warning: already initialized constant VERSION_PATTERN
    [junit] 
/Users/asari/Development/src/jruby/lib/ruby/shared/rubygems/version.rb:149 
warning: already initialized constant ANCHORED_VERSION_PATTERN
    [junit] 
/Users/asari/Development/src/jruby/lib/ruby/shared/rubygems/requirement.rb:19 
warning: already initialized constant OPS
    [junit] 
/Users/asari/Development/src/jruby/lib/ruby/shared/rubygems/requirement.rb:30 
warning: already initialized constant PATTERN
    [junit] 
/Users/asari/Development/src/jruby/lib/ruby/shared/rubygems/requirement.rb:203 
warning: already initialized constant Requirement
    [junit] 
/Users/asari/Development/src/jruby/lib/ruby/gems/shared/gems/minitest-2.11.1/lib/minitest/unit.rb:58
 warning: already initialized constant UNDEFINED
    [junit] 
/Users/asari/Development/src/jruby/lib/ruby/gems/shared/gems/minitest-2.11.1/lib/minitest/unit.rb:64
 warning: already initialized constant WINDOZE
    [junit] 
/Users/asari/Development/src/jruby/lib/ruby/gems/shared/gems/minitest-2.11.1/lib/minitest/unit.rb:646
 warning: already initialized constant VERSION
    [junit] 
/Users/asari/Development/src/jruby/lib/ruby/gems/shared/gems/minitest-2.11.1/lib/minitest/unit.rb:1016
 warning: already initialized constant PASSTHROUGH_EXCEPTIONS
    [junit] 
/Users/asari/Development/src/jruby/lib/ruby/gems/shared/gems/minitest-2.11.1/lib/minitest/unit.rb:1019
 warning: already initialized constant SUPPORTS_INFO_SIGNAL
    [junit] /Users/asari/Development/src/jruby/lib/ruby/shared/rubygems.rb:9 
warning: already initialized constant QUICKLOADER_SUCKAGE
    [junit] /Users/asari/Development/src/jruby/lib/ruby/shared/rubygems.rb:10 
warning: already initialized constant GEM_PRELUDE_SUCKAGE
    [junit] /Users/asari/Development/src/jruby/lib/ruby/shared/rubygems.rb:121 
warning: already initialized constant VERSION
    [junit] /Users/asari/Development/src/jruby/lib/ruby/shared/rubygems.rb:138 
warning: already initialized constant RubyGemsVersion
    [junit] /Users/asari/Development/src/jruby/lib/ruby/shared/rubygems.rb:140 
warning: already initialized constant RbConfigPriorities
    [junit] /Users/asari/Development/src/jruby/lib/ruby/shared/rubygems.rb:157 
warning: already initialized constant RubyGemsPackageVersion
    [junit] /Users/asari/Development/src/jruby/lib/ruby/shared/rubygems.rb:159 
warning: already initialized constant RUBYGEMS_DIR
    [junit] /Users/asari/Development/src/jruby/lib/ruby/shared/rubygems.rb:166 
warning: already initialized constant WIN_PATTERNS
    [junit] /Users/asari/Development/src/jruby/lib/ruby/shared/rubygems.rb:1158 
warning: already initialized constant MARSHAL_SPEC_DIR
    [junit] 
/Users/asari/Development/src/jruby/lib/ruby/shared/rubygems/custom_require.rb:36
 warning: redefining constant Struct::Passwd
    [junit] 
/Users/asari/Development/src/jruby/lib/ruby/shared/rubygems/custom_require.rb:36
 warning: redefining constant Struct::Group
    [junit] ------------- ---------------- ---------------
    [junit] Testcase: 
externals/ruby1.9/psych/test_alias_and_anchor(org.jruby.test.Ruby1_9TestSuite$Ruby1_9ScriptTest):
 FAILED
    [junit] Faults encountered running 
test/externals/ruby1.9/psych/test_alias_and_anchor, complete output follows:
    [junit] uninitialized constant Gem::Requirement
    [junit] org/jruby/RubyModule.java:2610:in 
`const_missing'/Users/asari/Development/src/jruby/lib/ruby/shared/rubygems/dependency.rb:50:in
 
`initialize'/Users/asari/Development/src/jruby/lib/ruby/shared/rubygems.rb:1208:in
 
`gem'/Users/asari/Development/src/jruby/lib/ruby/gems/shared/gems/minitest-2.11.1/lib/minitest/autorun.rb:3:in
 `(root)'org/jruby/RubyKernel.java:970:in 
`require'/Users/asari/Development/src/jruby/lib/ruby/gems/shared/gems/minitest-2.11.1/lib/minitest/autorun.rb:36:in
 
`require'/Users/asari/Development/src/jruby/test/externals/ruby1.9/psych/helper.rb:1:in
 `(root)'org/jruby/RubyKernel.java:970:in 
`require'/Users/asari/Development/src/jruby/test/externals/ruby1.9/psych/helper.rb:36:in
 
`require'/Users/asari/Development/src/jruby/test/externals/ruby1.9/psych/test_alias_and_anchor.rb:1:in
 `(root)'org/jruby/RubyKernel.java:970:in 
`require'/Users/asari/Development/src/jruby/test/externals/ruby1.9/psych/test_alias_and_anchor.rb:36:in
 
`require'test/externals/ruby1.9/psych/test_alias_and_anchor_generated_test.rb:6:in
 `(root)'
    [junit] junit.framework.AssertionFailedError: Faults encountered running 
test/externals/ruby1.9/psych/test_alias_and_anchor, complete output follows:
    [junit] uninitialized constant Gem::Requirement
    [junit] org/jruby/RubyModule.java:2610:in 
`const_missing'/Users/asari/Development/src/jruby/lib/ruby/shared/rubygems/dependency.rb:50:in
 
`initialize'/Users/asari/Development/src/jruby/lib/ruby/shared/rubygems.rb:1208:in
 
`gem'/Users/asari/Development/src/jruby/lib/ruby/gems/shared/gems/minitest-2.11.1/lib/minitest/autorun.rb:3:in
 `(root)'org/jruby/RubyKernel.java:970:in 
`require'/Users/asari/Development/src/jruby/lib/ruby/gems/shared/gems/minitest-2.11.1/lib/minitest/autorun.rb:36:in
 
`require'/Users/asari/Development/src/jruby/test/externals/ruby1.9/psych/helper.rb:1:in
 `(root)'org/jruby/RubyKernel.java:970:in 
`require'/Users/asari/Development/src/jruby/test/externals/ruby1.9/psych/helper.rb:36:in
 
`require'/Users/asari/Development/src/jruby/test/externals/ruby1.9/psych/test_alias_and_anchor.rb:1:in
 `(root)'org/jruby/RubyKernel.java:970:in 
`require'/Users/asari/Development/src/jruby/test/externals/ruby1.9/psych/test_alias_and_anchor.rb:36:in
 
`require'test/externals/ruby1.9/psych/test_alias_and_anchor_generated_test.rb:6:in
 `(root)'
    [junit]     at 
org.jruby.test.TestUnitTestSuite$ScriptTest.runTest(TestUnitTestSuite.java:233)
    [junit] 
    [junit] 

BUILD FAILED
/Users/asari/Development/src/jruby/build.xml:894: The following error occurred 
while executing this line:
/Users/asari/Development/src/jruby/build.xml:1090: The following error occurred 
while executing this line:
/Users/asari/Development/src/jruby/build.xml:980: Test 
org.jruby.test.Ruby1_9TestSuite failed

Total time: 13 seconds
{noformat}

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://jira.codehaus.org/secure/ContactAdministrators!default.jspa
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