From a2ea90d756aa64cda9851d9d16cc11a087cb953e Mon Sep 17 00:00:00 2001 From: nobu Date: Fri, 11 Sep 2009 12:06:34 +0000 Subject: * bootstraptest/test_thread.rb: just check for normal exit. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@24850 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- bootstraptest/test_thread.rb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/bootstraptest/test_thread.rb b/bootstraptest/test_thread.rb index c82ad22eb..0e7d03d43 100644 --- a/bootstraptest/test_thread.rb +++ b/bootstraptest/test_thread.rb @@ -188,18 +188,18 @@ assert_equal %q{11}, %q{ 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]' -- cgit