RubySpec: Failures only in 1.9 compiled mode
--------------------------------------------
Key: JRUBY-5671
URL: http://jira.codehaus.org/browse/JRUBY-5671
Project: JRuby
Issue Type: Bug
Components: Compiler, Ruby 1.9.2, RubySpec
Affects Versions: JRuby 1.6
Reporter: Charles Oliver Nutter
{noformat}
1)
A class definition extending an object (sclass) allows accessing the block of
the original scope ERROR
LocalJumpError: yield called out of block
/Users/headius/projects/jruby/spec/ruby/fixtures/class.rb:5:in `__singleton__'
/Users/headius/projects/jruby/spec/ruby/fixtures/class.rb:4:in
`sclass_with_block'
/Users/headius/projects/jruby/spec/ruby/language/class_spec.rb:186:in `__file__'
org/jruby/RubyBasicObject.java:1697:in `instance_eval'
org/jruby/RubyEnumerable.java:1262:in `all?'
org/jruby/RubyArray.java:1572:in `each'
/Users/headius/projects/jruby/spec/ruby/language/class_spec.rb:168:in `(root)'
org/jruby/RubyKernel.java:1072:in `load'
org/jruby/RubyBasicObject.java:1697:in `instance_eval'
org/jruby/RubyArray.java:1572:in `each'
2)
The def keyword within a closure looks outside the closure for the visibility
FAILED
Expected DefSpecsLambdaVisibility to have private instance method 'some_method'
but it does not
/Users/headius/projects/jruby/spec/ruby/language/def_spec.rb:504:in `__file__'
org/jruby/RubyBasicObject.java:1697:in `instance_eval'
org/jruby/RubyEnumerable.java:1262:in `all?'
org/jruby/RubyArray.java:1572:in `each'
org/jruby/RubyArray.java:1572:in `each'
/Users/headius/projects/jruby/spec/ruby/language/def_spec.rb:493:in `(root)'
org/jruby/RubyKernel.java:1072:in `load'
org/jruby/RubyBasicObject.java:1697:in `instance_eval'
org/jruby/RubyArray.java:1572:in `each'
3)
Kernel.__callee__ returns the current method, even when aliased FAILED
Expected nil
to equal :f
/Users/headius/projects/jruby/spec/ruby/core/kernel/shared/__method__.rb:9:in
`__file__'
org/jruby/RubyBasicObject.java:1697:in `instance_eval'
org/jruby/RubyEnumerable.java:1262:in `all?'
org/jruby/RubyArray.java:1572:in `each'
/Users/headius/projects/jruby/spec/ruby/core/kernel/__callee___spec.rb:5:in
`(root)'
org/jruby/RubyKernel.java:1072:in `load'
org/jruby/RubyBasicObject.java:1697:in `instance_eval'
org/jruby/RubyArray.java:1572:in `each'
4)
Kernel.__callee__ returns the original name when aliased method FAILED
Expected nil
to equal :f
/Users/headius/projects/jruby/spec/ruby/core/kernel/shared/__method__.rb:13:in
`__file__'
org/jruby/RubyBasicObject.java:1697:in `instance_eval'
org/jruby/RubyEnumerable.java:1262:in `all?'
org/jruby/RubyArray.java:1572:in `each'
/Users/headius/projects/jruby/spec/ruby/core/kernel/__callee___spec.rb:5:in
`(root)'
org/jruby/RubyKernel.java:1072:in `load'
org/jruby/RubyBasicObject.java:1697:in `instance_eval'
org/jruby/RubyArray.java:1572:in `each'
5)
self.send(:block_given?) returns true if and only if a block is supplied FAILED
Expected false
not to equal false
/Users/headius/projects/jruby/spec/ruby/core/kernel/block_given_spec.rb:6:in
`__file__'
org/jruby/RubyBasicObject.java:1697:in `instance_eval'
org/jruby/RubyEnumerable.java:1262:in `all?'
org/jruby/RubyArray.java:1572:in `each'
/Users/headius/projects/jruby/spec/ruby/core/kernel/block_given_spec.rb:35:in
`(root)'
org/jruby/RubyKernel.java:1072:in `load'
org/jruby/RubyBasicObject.java:1697:in `instance_eval'
org/jruby/RubyArray.java:1572:in `each'
6)
Proc.new with an associated block returns a new Proc instance from the block
passed to the containing method ERROR
ArgumentError: tried to create Proc object without a block
org/jruby/RubyProc.java:141:in `new'
/Users/headius/projects/jruby/spec/ruby/core/proc/fixtures/common.rb:10:in
`new_proc_subclass_in_method'
/Users/headius/projects/jruby/spec/ruby/core/proc/new_spec.rb:117:in `__file__'
org/jruby/RubyBasicObject.java:1697:in `instance_eval'
org/jruby/RubyEnumerable.java:1262:in `all?'
org/jruby/RubyArray.java:1572:in `each'
/Users/headius/projects/jruby/spec/ruby/core/proc/new_spec.rb:4:in `(root)'
org/jruby/RubyKernel.java:1072:in `load'
org/jruby/RubyBasicObject.java:1697:in `instance_eval'
org/jruby/RubyArray.java:1572:in `each'
7)
Regexp.compile given a Regexp enables multibyte support if given in the literal
FAILED
Expected "#<Encoding:US-ASCII>"
to equal "#<Encoding:UTF-8>"
/Users/headius/projects/jruby/spec/ruby/core/regexp/shared/new.rb:168:in
`__file__'
org/jruby/RubyBasicObject.java:1697:in `instance_eval'
org/jruby/RubyEnumerable.java:1262:in `all?'
org/jruby/RubyArray.java:1572:in `each'
/Users/headius/projects/jruby/spec/ruby/core/regexp/compile_spec.rb:12:in
`(root)'
org/jruby/RubyKernel.java:1072:in `load'
org/jruby/RubyBasicObject.java:1697:in `instance_eval'
org/jruby/RubyArray.java:1572:in `each'
8)
Regexp#encoding returns Windows-31J if the 's' modifier is supplied FAILED
Expected #<Encoding:UTF-8>
to equal #<Encoding:Windows-31J>
/Users/headius/projects/jruby/spec/ruby/core/regexp/encoding_spec.rb:36:in
`__file__'
org/jruby/RubyBasicObject.java:1697:in `instance_eval'
org/jruby/RubyEnumerable.java:1262:in `all?'
org/jruby/RubyArray.java:1572:in `each'
/Users/headius/projects/jruby/spec/ruby/core/regexp/encoding_spec.rb:5:in
`__file__'
/Users/headius/projects/jruby/spec/ruby/core/regexp/encoding_spec.rb:4:in
`(root)'
org/jruby/RubyKernel.java:1072:in `load'
org/jruby/RubyBasicObject.java:1697:in `instance_eval'
org/jruby/RubyArray.java:1572:in `each'
9)
Regexp#encoding returns EUC_JP if the 'e' modifier is supplied FAILED
Expected #<Encoding:UTF-8>
to equal #<Encoding:EUC-JP>
/Users/headius/projects/jruby/spec/ruby/core/regexp/encoding_spec.rb:40:in
`__file__'
org/jruby/RubyBasicObject.java:1697:in `instance_eval'
org/jruby/RubyEnumerable.java:1262:in `all?'
org/jruby/RubyArray.java:1572:in `each'
/Users/headius/projects/jruby/spec/ruby/core/regexp/encoding_spec.rb:5:in
`__file__'
/Users/headius/projects/jruby/spec/ruby/core/regexp/encoding_spec.rb:4:in
`(root)'
org/jruby/RubyKernel.java:1072:in `load'
org/jruby/RubyBasicObject.java:1697:in `instance_eval'
org/jruby/RubyArray.java:1572:in `each'
10)
Regexp#encoding upgrades the encoding to that of an embedded String FAILED
Expected #<Encoding:ASCII-8BIT>
to equal #<Encoding:EUC-JP>
/Users/headius/projects/jruby/spec/ruby/core/regexp/encoding_spec.rb:45:in
`__file__'
org/jruby/RubyBasicObject.java:1697:in `instance_eval'
org/jruby/RubyEnumerable.java:1262:in `all?'
org/jruby/RubyArray.java:1572:in `each'
/Users/headius/projects/jruby/spec/ruby/core/regexp/encoding_spec.rb:5:in
`__file__'
/Users/headius/projects/jruby/spec/ruby/core/regexp/encoding_spec.rb:4:in
`(root)'
org/jruby/RubyKernel.java:1072:in `load'
org/jruby/RubyBasicObject.java:1697:in `instance_eval'
org/jruby/RubyArray.java:1572:in `each'
11)
Regexp.new given a Regexp enables multibyte support if given in the literal
FAILED
Expected "#<Encoding:US-ASCII>"
to equal "#<Encoding:UTF-8>"
/Users/headius/projects/jruby/spec/ruby/core/regexp/shared/new.rb:168:in
`__file__'
org/jruby/RubyBasicObject.java:1697:in `instance_eval'
org/jruby/RubyEnumerable.java:1262:in `all?'
org/jruby/RubyArray.java:1572:in `each'
/Users/headius/projects/jruby/spec/ruby/core/regexp/new_spec.rb:12:in `(root)'
org/jruby/RubyKernel.java:1072:in `load'
org/jruby/RubyBasicObject.java:1697:in `instance_eval'
org/jruby/RubyArray.java:1572:in `each'
12)
Regexp.union raises ArgumentError if the kcodes conflict FAILED
Expected ArgumentError but no exception was raised
/Users/headius/projects/jruby/spec/ruby/core/regexp/union_spec.rb:25:in
`__file__'
org/jruby/RubyBasicObject.java:1697:in `instance_eval'
org/jruby/RubyEnumerable.java:1262:in `all?'
org/jruby/RubyArray.java:1572:in `each'
/Users/headius/projects/jruby/spec/ruby/core/regexp/union_spec.rb:3:in `(root)'
org/jruby/RubyKernel.java:1072:in `load'
org/jruby/RubyBasicObject.java:1697:in `instance_eval'
org/jruby/RubyArray.java:1572:in `each'
13)
String#chr understands Strings that contain a mixture of character widths FAILED
Expected "\xE8"
to equal "\xE8\x82\x82"
/Users/headius/projects/jruby/spec/ruby/core/string/chr_spec.rb:41:in `__file__'
org/jruby/RubyBasicObject.java:1697:in `instance_eval'
org/jruby/RubyEnumerable.java:1262:in `all?'
org/jruby/RubyArray.java:1572:in `each'
/Users/headius/projects/jruby/spec/ruby/core/string/chr_spec.rb:4:in `__file__'
/Users/headius/projects/jruby/spec/ruby/core/string/chr_spec.rb:3:in `(root)'
org/jruby/RubyKernel.java:1072:in `load'
org/jruby/RubyBasicObject.java:1697:in `instance_eval'
org/jruby/RubyArray.java:1572:in `each'
{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