summaryrefslogtreecommitdiff
path: root/bootstraptest/test_thread.rb
diff options
context:
space:
mode:
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 c82ad22ebe4..0e7d03d436c 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]'