Test::Unit bug?

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

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

···

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.