# Ruby 1.9, OS X 10.5.2 Test Fail! After Build

**URL:** <https://www.ruby-forum.com/t/ruby-1-9-os-x-10-5-2-test-fail-after-build/136756>\
**Category:** Ruby\
**Created:** [May 6, 2008, 6:15am UTC](https://www.ruby-forum.com/t/ruby-1-9-os-x-10-5-2-test-fail-after-build/136756 "2008-05-06T06:15:19Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![lmcdougal](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/l/bb73d2/32.png) [@lmcdougal](https://www.ruby-forum.com/u/lmcdougal)\
**Post date:** [May 6, 2008, 6:15am UTC](https://www.ruby-forum.com/t/ruby-1-9-os-x-10-5-2-test-fail-after-build/136756/1 "2008-05-06T06:15:19Z")

</div>

I bet someone knows how to fix this one!  
Help Please

Thanks  
-L

Source form ruby-1.9.0-1.tar.gz

test\_thread.rb …  
#230 test\_knownbug.rb:19:in `<top (required)>': class C define_method(:foo) { if block_given? :ng else :ok end } end C.new.foo #=> "ng" (expected "ok") [ruby-core:14813] #231 test_knownbug.rb:32:in`\<top (required)\>’:  
class X \< RuntimeError;end  
x = [X]  
begin  
raise X  
rescue \*x  
:ok  
end  
#=\> “” (expected “ok”) [ruby-core:14537]  
#235 test\_knownbug.rb:54:in `\<top (required)\>’:  
a = lambda {|x, y, &b| b }  
b = a.curry[1]  
if b.call(2){} == nil  
:ng  
else  
:ok  
end  
#=\> “ng” (expected “ok”) [ruby-core:15551]  
FAIL 3/807 tests failed  
make: \*\*\* [btest-miniruby] Error 1

---

<div class="post-metadata">

**Author:** ![lmcdougal](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/l/bb73d2/32.png) [@lmcdougal](https://www.ruby-forum.com/u/lmcdougal)\
**Post date:** [May 6, 2008, 9:58am UTC](https://www.ruby-forum.com/t/ruby-1-9-os-x-10-5-2-test-fail-after-build/136756/2 "2008-05-06T09:58:05Z")

</div>

Luis M. wrote:

> #230 test\_knownbug.rb:19:in `\<top (required)\>’:  
> ^^^^^^^^

Like said these are known bugs in the current implementation

> #231 test\_knownbug.rb:32:in `\<top (required)\>’:  
> class X \< RuntimeError;end

this bug is fixed in the latest implementation

> #230 test\_knownbug.rb:19:in `\<top (required)\>’:  
> class C  
> define\_method(:foo) {

> #235 test\_knownbug.rb:54:in `\<top (required)\>’:  
> a = lambda {|x, y, &b| b }

This two bugs are related, i.e. if you fix the first problem then  
it’s easy to fix the second.

Guy Decoux
