# Test::Unit bug?

**URL:** <https://www.ruby-forum.com/t/test-unit-bug/123195>\
**Category:** Ruby\
**Created:** [December 14, 2007, 9:27pm UTC](https://www.ruby-forum.com/t/test-unit-bug/123195 "2007-12-14T21:27:47Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![gmichelson](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/g/db5fbb/32.png) [@gmichelson](https://www.ruby-forum.com/u/gmichelson)\
**Post date:** [December 14, 2007, 9:27pm UTC](https://www.ruby-forum.com/t/test-unit-bug/123195/1 "2007-12-14T21:27:47Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![gmichelson](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/g/db5fbb/32.png) [@gmichelson](https://www.ruby-forum.com/u/gmichelson)\
**Post date:** [December 14, 2007, 11:39pm UTC](https://www.ruby-forum.com/t/test-unit-bug/123195/2 "2007-12-14T23:39:48Z")

</div>

On Dec 14, 2007, at 12:26 , George M. wrote:

> 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’.
