In article <7762c743.0304241328.3bc46521 / posting.google.com>,
haldane <jbshaldane / hotmail.com> wrote:
>Is it me, or is this a Test::Unit bug?
>
>$ cat atest.rb
>require 'test/unit'
>
>class ATest < Test::Unit::TestCase
>  def test_1
>    thread = Thread.new {
>      flunk()
>    }
>    thread.join
>  end
>end
>$ ruby atest.rb
>Loaded suite atest
>Started
>/usr/local/lib/ruby/site_ruby/1.8/test/unit/testcase.rb:129:in
>`add_failure': undefined method `[]' for nil (NoMethodError)
>        from /usr/local/lib/ruby/site_ruby/1.8/test/unit/testcase.rb:70:in
>`run'
>        from /usr/local/lib/ruby/site_ruby/1.8/test/unit/testsuite.rb:34:in
>`run'
>        from /usr/local/lib/ruby/site_ruby/1.8/test/unit/testsuite.rb:33:in
>`each'
>        from /usr/local/lib/ruby/site_ruby/1.8/test/unit/testsuite.rb:33:in
>`run'
>        from /usr/local/lib/ruby/site_ruby/1.8/test/unit/testsuite.rb:34:in
>`run'
>        from /usr/local/lib/ruby/site_ruby/1.8/test/unit/testsuite.rb:33:in
>`each'
>        from /usr/local/lib/ruby/site_ruby/1.8/test/unit/testsuite.rb:33:in
>`run'
>        from
>/usr/local/lib/ruby/site_ruby/1.8/test/unit/ui/testrunnermediator.rb:53:in
>`run_suite'
>        from
>/usr/local/lib/ruby/site_ruby/1.8/test/unit/ui/console/testrunner.rb:77:in
>`start_mediator'
>        from
>/usr/local/lib/ruby/site_ruby/1.8/test/unit/ui/console/testrunner.rb:51:in
>`start'
>        from
>/usr/local/lib/ruby/site_ruby/1.8/test/unit/ui/console/testrunner.rb:26:in
>`run'
>        from /usr/local/lib/ruby/site_ruby/1.8/test/unit.rb:178
>        from /usr/local/lib/ruby/site_ruby/1.8/test/unit.rb:176:in
>`call'
>        from /usr/local/lib/ruby/site_ruby/1.8/test/unit.rb:212
>        from /usr/local/lib/ruby/site_ruby/1.8/test/unit.rb:162
>        from atest.rb:4
>$


I'm seeing something similar with ruby 1.8 whereas it worked fine with 
1.6.x.  Could you try running your test under ruby 1.6.x and see what 
happens?

What changed in 1.8 that could have broken Test::Unit?

Phil