ruby-changes:13101
From: nobu <ko1@a...>
Date: Fri, 11 Sep 2009 21:06:43 +0900 (JST)
Subject: [ruby-changes:13101] Ruby:r24850 (trunk): * bootstraptest/test_thread.rb: just check for normal exit.
nobu 2009-09-11 21:06:34 +0900 (Fri, 11 Sep 2009) New Revision: 24850 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=24850 Log: * bootstraptest/test_thread.rb: just check for normal exit. Modified files: trunk/bootstraptest/test_thread.rb Index: bootstraptest/test_thread.rb =================================================================== --- bootstraptest/test_thread.rb (revision 24849) +++ bootstraptest/test_thread.rb (revision 24850) @@ -188,18 +188,18 @@ Thread.current[:a] }.value + Thread.current[:a] } -assert_equal %q{100}, %q{ +assert_normal_exit %q{ begin 100.times do |i| begin - Thread.start(Thread.current) {|u| u.raise } + th = Thread.start(Thread.current) {|u| u.raise } raise rescue ensure + th.join end end rescue - 100 end }, '[ruby-dev:31371]' -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/