Make sure test gets green on 1.9 mode
-------------------------------------

                 Key: JRUBY-5362
                 URL: http://jira.codehaus.org/browse/JRUBY-5362
             Project: JRuby
          Issue Type: Improvement
          Components: OpenSSL
    Affects Versions: JRuby-OSSL 0.7.2
         Environment: jruby 1.6.0.RC1 (ruby 1.8.7 patchlevel 330) (2011-01-15 
fdad904) (OpenJDK 64-Bit Server VM 1.6.0_20) [linux-amd64-java]
            Reporter: Hiroshi Nakamura
            Assignee: Hiroshi Nakamura


It looks not bad. But we should handle ruby-ossl libs for 1.8 and 1.9 
correctly. Time to decide, merging jruby-ossl to JRuby or make ruby-ossl split 
out from CRuby and merge it with jruby-ossl as a single gem.

{noformat}
0% jruby --1.9 test/test_all.rb
Loaded suite test/test_all
Started
E........FF.........................................................................................................E..............E............................................................................................................E..EE........F...............F......
Finished in 43.370000 seconds.

  1) Error:
test_decode(OpenSSL::TestASN1):
TypeError: can't convert Fixnum into String
    org/jruby/RubyString.java:3574:in `op_aset19'
    org/jruby/RubyString.java:3554:in `op_aset19'
    /home/nahi/git/jruby-openssl/test/openssl/test_asn1.rb:172:in `test_decode'
    org/jruby/RubyBasicObject.java:1650:in `send19'
    org/jruby/RubyObject.java:1372:in `send19'
    
/home/nahi/git/jruby-openssl/test/../build_lib/mocha/lib/mocha/integration/mini_test/version_142_and_above.rb:27:in
 `run'

  2) Failure:
test_iso10126_padding(OpenSSL::TestCipher) 
[/home/nahi/git/jruby-openssl/test/openssl/test_cipher.rb:123]:
Failed assertion, no message given.

  3) Failure:
test_iso10126_padding_boundry(OpenSSL::TestCipher) 
[/home/nahi/git/jruby-openssl/test/openssl/test_cipher.rb:139]:
Failed assertion, no message given.

  4) Error:
test_hash(OpenSSL::TestX509Name):
NoMethodError: undefined method `&' for " ":String
    /home/nahi/git/jruby-openssl/test/openssl/test_x509name.rb:274:in 
`calc_hash'
    /home/nahi/git/jruby-openssl/test/openssl/test_x509name.rb:281:in 
`test_hash'
    org/jruby/RubyBasicObject.java:1650:in `send19'
    org/jruby/RubyObject.java:1372:in `send19'
    
/home/nahi/git/jruby-openssl/test/../build_lib/mocha/lib/mocha/integration/mini_test/version_142_and_above.rb:27:in
 `run'

  5) Error:
test_verify(OpenSSL::TestX509Store):
ArgumentError: assertion message must be String or Proc, but TrueClass was 
given.
    /home/nahi/git/jruby-openssl/test/openssl/test_x509store.rb:69:in 
`test_verify'
    
/home/nahi/git/jruby-openssl/test/../build_lib/mocha/lib/mocha/integration/mini_test/version_142_and_above.rb:27:in
 `__send__'
    
/home/nahi/git/jruby-openssl/test/../build_lib/mocha/lib/mocha/integration/mini_test/version_142_and_above.rb:27:in
 `send'
    
/home/nahi/git/jruby-openssl/test/../build_lib/mocha/lib/mocha/integration/mini_test/version_142_and_above.rb:27:in
 `run'

  6) Error:
test_ca_path_name(TestIntegration):
NoMethodError: undefined method `read_nonblock' for 
#<OpenSSL::SSL::SSLSocket:0x13fa6c5>
    /home/nahi/git/jruby-openssl/test/test_integration.rb:35:in 
`test_ca_path_name'
    /home/nahi/git/jruby-openssl/test/test_integration.rb:34:in 
`test_ca_path_name'
    org/jruby/RubyBasicObject.java:1650:in `send19'
    org/jruby/RubyObject.java:1372:in `send19'
    
/home/nahi/git/jruby-openssl/test/../build_lib/mocha/lib/mocha/integration/mini_test/version_142_and_above.rb:27:in
 `run'
    org/jruby/RubyArray.java:1671:in `each'
    org/jruby/RubyArray.java:1671:in `each'

  7) Error:
test_pathlen_does_not_appear(TestIntegration):
NoMethodError: undefined method `read_nonblock' for 
#<OpenSSL::SSL::SSLSocket:0x63f78dde>
    /home/nahi/git/jruby-openssl/test/test_integration.rb:82:in 
`test_pathlen_does_not_appear'
    /home/nahi/git/jruby-openssl/test/test_integration.rb:81:in 
`test_pathlen_does_not_appear'
    org/jruby/RubyBasicObject.java:1650:in `send19'
    org/jruby/RubyObject.java:1372:in `send19'
    
/home/nahi/git/jruby-openssl/test/../build_lib/mocha/lib/mocha/integration/mini_test/version_142_and_above.rb:27:in
 `run'
    org/jruby/RubyArray.java:1671:in `each'
    org/jruby/RubyArray.java:1671:in `each'

  8) Error:
test_ssl_verify(TestIntegration):
NoMethodError: undefined method `read_nonblock' for 
#<OpenSSL::SSL::SSLSocket:0x7ae6da1e>
    /home/nahi/git/jruby-openssl/test/test_integration.rb:49:in 
`test_ssl_verify'
    /home/nahi/git/jruby-openssl/test/test_integration.rb:48:in 
`test_ssl_verify'
    org/jruby/RubyBasicObject.java:1650:in `send19'
    org/jruby/RubyObject.java:1372:in `send19'
    
/home/nahi/git/jruby-openssl/test/../build_lib/mocha/lib/mocha/integration/mini_test/version_142_and_above.rb:27:in
 `run'
    org/jruby/RubyArray.java:1671:in `each'
    org/jruby/RubyArray.java:1671:in `each'

  9) Failure:
test_has_correct_methods(TestPKey) 
[/home/nahi/git/jruby-openssl/test/test_pkey.rb:11]:
Failed assertion, no message given.

 10) Failure:
test_jruby_4826(TestSSL) [/home/nahi/git/jruby-openssl/test/test_ssl.rb:25]:
Exception raised:
<#<NoMethodError: undefined method `read_nonblock' for 
#<OpenSSL::SSL::SSLSocket:0x1106856d>>>.

276 tests, 1655 assertions, 4 failures, 6 errors, 0 skips

Test run options: --seed 25815
{noformat}

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://jira.codehaus.org/secure/Administrators.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