[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

comp.lang.ruby

Test::Unit bug?

George Malamidis

12/14/2007 8:27:00 PM

Hello,

Not sure if anyone's noticed this before, but there's bug in
Test::Unit's unit.rb :

at_exit do
unless $! || Test::Unit.run?
exit Test::Unit::AutoRunner.run
end
end

Can you spot the bug? You have to do

Test::Unit.run = true

in order to disable the AutoRunner.

George

1 Answer

Ryan Davis

12/14/2007 10:27:00 PM

0


On Dec 14, 2007, at 12:26 , George Malamidis wrote:

> Hello,
>
> Not sure if anyone's noticed this before, but there's bug in
> Test::Unit's unit.rb :
>
> at_exit do
> unless $! || Test::Unit.run?
> exit Test::Unit::AutoRunner.run
> end
> end
>
> Can you spot the bug? You have to do
>
> Test::Unit.run = true
>
> in order to disable the AutoRunner.

or just don't include 'test/unit'.