From 2620a840702c1b109f20706276d0c8b00d3a7204 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: svn+ssh://ci.ruby-lang.org/ruby/trunk@24850 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- bootstraptest/test_thread.rb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'bootstraptest') diff --git a/bootstraptest/test_thread.rb b/bootstraptest/test_thread.rb index c82ad22ebe..0e7d03d436 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 v1.2.3