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.rb14
1 files changed, 14 insertions, 0 deletions
diff --git a/bootstraptest/test_thread.rb b/bootstraptest/test_thread.rb
index 64d685fa19..40ccbad497 100644
--- a/bootstraptest/test_thread.rb
+++ b/bootstraptest/test_thread.rb
@@ -169,3 +169,17 @@ assert_equal %q{11}, %q{
Thread.current[:a]
}.value + Thread.current[:a]
}
+assert_equal %q{1000}, %q{
+begin
+ 1000.times do |i|
+ begin
+ Thread.start(Thread.current) {|u| u.raise }
+ raise
+ rescue
+ ensure
+ end
+ end
+rescue
+ 1000
+end
+}, '[ruby-dev:31371]'