mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
Adds another timeouts.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35329 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
d2e2b309e8
commit
05af801f4c
1 changed files with 9 additions and 3 deletions
|
@ -217,9 +217,15 @@ EOT
|
||||||
require'timeout'
|
require'timeout'
|
||||||
def test_gc
|
def test_gc
|
||||||
bignum_too_long_to_embed_as_string = 1234567890123456789012345
|
bignum_too_long_to_embed_as_string = 1234567890123456789012345
|
||||||
|
expect = nil
|
||||||
|
stress = nil
|
||||||
|
timeout(1) do
|
||||||
expect = bignum_too_long_to_embed_as_string.to_s
|
expect = bignum_too_long_to_embed_as_string.to_s
|
||||||
|
end
|
||||||
|
timeout(30) do
|
||||||
GC.start
|
GC.start
|
||||||
stress, GC.stress = GC.stress, true
|
stress, GC.stress = GC.stress, true
|
||||||
|
end
|
||||||
|
|
||||||
timeout(30) do
|
timeout(30) do
|
||||||
10.times do |i|
|
10.times do |i|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue