summaryrefslogtreecommitdiffstats
path: root/bootstraptest
diff options
context:
space:
mode:
authorusa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-10-28 00:52:32 +0000
committerusa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-10-28 00:52:32 +0000
commitde8c85f572469905cb760b810a055b0aa0684b22 (patch)
treeabf9c23b6cdbc2c1f0641ffba3db90757566ce80 /bootstraptest
parent031cf16c6d6ed1bc6bef6be474bf882d90115a61 (diff)
downloadruby-de8c85f572469905cb760b810a055b0aa0684b22.tar.gz
ruby-de8c85f572469905cb760b810a055b0aa0684b22.tar.xz
ruby-de8c85f572469905cb760b810a055b0aa0684b22.zip
* bootstraptest/test_thread.rb: ignore some exceptions.
[ruby-dev:36951] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@19973 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'bootstraptest')
-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 f9a5beef2..ce90737eb 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
}