ruby-dns / net-dns

Net::DNS is a DNS library written in Ruby.
http://net-dns.rubyforge.org
Other
165 stars 43 forks source link

Test failure with net-dns 0.7.1 #44

Closed graaff closed 6 years ago

graaff commented 12 years ago

With jruby 1.6.7.2 (ruby-1.8.7-p357) (2012-05-17 fffffff) (OpenJDK 64-Bit Server VM 1.6.0_24) [linux-amd64-java] I'm getting the following test failure (or rather, lack of failure ;-)

  1) Failure:
test_initialize_should_raise_with_invalid_arguments_0(RRAAAATest)
    [/var/tmp/portage/dev-ruby/net-dns-0.7.1/work/jruby/net-dns-0.7.1/test/rr/aaaa_test.rb:67:in `test_initialize_should_raise_with_invalid_arguments_0'
     org/jruby/RubyProc.java:270:in `call'
     org/jruby/RubyKernel.java:2076:in `send'
     org/jruby/RubyArray.java:1615:in `each'
     org/jruby/RubyArray.java:1615:in `each']:
<ArgumentError> exception expected but none was thrown.
michelboaventura commented 12 years ago

This seems to be a jruby issue:

>jruby -e "require 'ipaddr'; IPAddr.new('2a00')"
>ruby -e "require 'ipaddr'; IPAddr.new('2a00')"
/usr/lib64/ruby/1.9.1/ipaddr.rb:496:in `rescue in initialize': invalid address (ArgumentError)
        from /usr/lib64/ruby/1.9.1/ipaddr.rb:493:in `initialize'
        from -e:1:in `new'
        from -e:1:in `<main>'

All ruby implementations we have on gentoo (ruby1.8, ruby1.9 ree1.8 and rubinius) throws an exception with this code, but jruby doesn't.

michelboaventura commented 12 years ago

I've create an issue about it on jruby's github: https://github.com/jruby/jruby/issues/310

weppos commented 6 years ago

Fixed in master