From: Nasir Khan Date: 2008-03-13T12:33:35+09:00 Subject: Re: bug in Test Unit? ------=_Part_7320_27593209.1205379224844 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline Well, if you see a few lines above that in unit.rb module Unit # If set to false Test::Unit will not automatically run at exit. def self.run=(flag) @run = flag end Now to me this reads as if you set the flag to true the tests will run on exit and if set to false the tests will not run on exit. This is obviously not what will happen when at_exit do unless $! || Test::Unit.run? exit Test::Unit::AutoRunner.run end end is executed, but the exact opposite. Nasir On Wed, Mar 12, 2008 at 9:06 PM, Ryan Davis wrote: > > On Mar 12, 2008, at 14:03 , Nasir Khan wrote: > > > In unit.rb with "ruby 1.8.6 (2007-03-13 patchlevel 0) [i386-mswin32]" > > > > at_exit do > > unless $! || Test::Unit.run? > > exit Test::Unit::AutoRunner.run > > end > > end > > not a bug... just bad English. It should be #ran?, not #run?. > > > ------=_Part_7320_27593209.1205379224844--