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, 5 insertions, 1 deletions
diff --git a/bootstraptest/test_thread.rb b/bootstraptest/test_thread.rb
index f9a5beef2d..ce90737ebf 100644
--- a/bootstraptest/test_thread.rb
+++ b/bootstraptest/test_thread.rb
@@ -363,5 +363,9 @@ assert_equal 'ok', %q{
}, '[ruby-dev:35414]'
assert_equal 'ok', %q{
- 10000.times { Thread.new(true) {|x| x == false } }; :ok
+ begin
+ 10000.times { Thread.new(true) {|x| x == false } }
+ rescue NoMemoryError, StandardError
+ end
+ :ok
}