aboutsummaryrefslogtreecommitdiffstats
path: root/bootstraptest/test_thread.rb
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-09-11 12:06:34 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-09-11 12:06:34 +0000
commit2620a840702c1b109f20706276d0c8b00d3a7204 (patch)
treee166e825f28775742b5e30b2d02da54e513acb4c /bootstraptest/test_thread.rb
parentf20d759cd05d5ce12724acce8a2a5689bee7547c (diff)
downloadruby-2620a840702c1b109f20706276d0c8b00d3a7204.tar.gz
* 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
Diffstat (limited to 'bootstraptest/test_thread.rb')
-rw-r--r--bootstraptest/test_thread.rb6
1 files changed, 3 insertions, 3 deletions
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]'