JRuby test/test_crazy_blocks fails
Christian Thalinger
christian.thalinger at oracle.com
Thu Mar 24 08:06:43 PDT 2011
I reran JRuby tests today and noticed a couple of problems. One I'd like an opinion on is test/test_crazy_blocks. It fails with invokedynamic and I'm not sure if either JRuby or the JDK has a bug.
Charlie, do you have an idea?
-- Christian
$ bin/jruby.sh -Xcompile.invokedynamic=false -J-XX:+UnlockExperimentalVMOptions -J-XX:+EnableMethodHandles -J-XX:+EnableInvokeDynamic test/test_crazy_blocks.rb
Loaded suite test/test_crazy_blocks
Started
....
Finished in 0.03 seconds.
4 tests, 4 assertions, 0 failures, 0 errors
$ bin/jruby.sh -Xcompile.invokedynamic=true -J-XX:+UnlockExperimentalVMOptions -J-XX:+EnableMethodHandles -J-XX:+EnableInvokeDynamic test/test_crazy_blocks.rb
Loaded suite test/test_crazy_blocks
Started
.F.F
Finished in 0.096 seconds.
1) Failure:
test_crazy2(TestCrazyBlocks)
[test/test_crazy_blocks.rb:34:in `test_crazy2'
org/jruby/RubyKernel.java:2038:in `send'
org/jruby/RubyArray.java:1572:in `each'
org/jruby/RubyArray.java:1572:in `each']:
<[1, 2, 3, 4]> expected but was
<[]>.
2) Failure:
test_crazy4(TestCrazyBlocks)
[test/test_crazy_blocks.rb:56:in `test_crazy4'
org/jruby/RubyKernel.java:2038:in `send'
org/jruby/RubyArray.java:1572:in `each'
org/jruby/RubyArray.java:1572:in `each']:
<[1, 2, 3, 4]> expected but was
<[]>.
4 tests, 4 assertions, 2 failures, 0 errors
More information about the mlvm-dev
mailing list