rubyomr-preview / ruby

The Ruby+OMR Preview
Other
68 stars 9 forks source link

RubySpec Repetition failure: Arity Mismatch undetected #73

Open mgaudet opened 7 years ago

mgaudet commented 7 years ago

Since https://github.com/ruby/spec/issues/381 was closed, we can now run RubySpec with a repeat, and better stress the inliner. This appears to reveal an arity mismatch detection error:

 OMR_JIT_OPTIONS=-Xjit:count=1,optLevel=warm LD_LIBRARY_PATH=$PWD ./miniruby -I./lib -I. -I.ext/common  ./tool/runruby.rb --extout=.ext  -- --disable-gems -r./x86_64-linux-fake ./spec/mspec/bin/mspec run -R3 -B ./spec/default.mspec
ruby 2.4.0p0 (2016-12-24 revision 57163) [x86_64-linux]
last_commit=Merge pull request #71 from mgaudet/updates

1)
Invoking a method with zero arguments raises ArgumentError if the method has a positive arity FAILED
Expected ArgumentError
but no exception was raised ([70223650878668] was returned)
/home/magaudet/open/ruby_Inliner/spec/rubyspec/language/send_spec.rb:23:in `block (3 levels) in <top (required)>'
/home/magaudet/open/ruby_Inliner/spec/rubyspec/language/send_spec.rb:16:in `<top (required)>'

2)
Invoking a method with zero arguments raises ArgumentError if the method has a positive arity FAILED
Expected ArgumentError
but no exception was raised ([70223650878668] was returned)
/home/magaudet/open/ruby_Inliner/spec/rubyspec/language/send_spec.rb:23:in `block (3 levels) in <top (required)>'
/home/magaudet/open/ruby_Inliner/spec/rubyspec/language/send_spec.rb:16:in `<top (required)>'

3)
Invoking a method with only mandatory arguments raises ArgumentError if the methods arity doesn't match FAILED
Expected ArgumentError but no exception was raised ([1] was returned)
/home/magaudet/open/ruby_Inliner/spec/rubyspec/language/send_spec.rb:39:in `block (3 levels) in <top (required)>'
/home/magaudet/open/ruby_Inliner/spec/rubyspec/language/send_spec.rb:16:in `<top (required)>'

4)
Invoking a method with only mandatory arguments raises ArgumentError if the methods arity doesn't match FAILED
Expected ArgumentError but no exception was raised ([1] was returned)
/home/magaudet/open/ruby_Inliner/spec/rubyspec/language/send_spec.rb:39:in `block (3 levels) in <top (required)>'
/home/magaudet/open/ruby_Inliner/spec/rubyspec/language/send_spec.rb:16:in `<top (required)>'