ruby-changes:23278
From: naruse <ko1@a...>
Date: Sun, 15 Apr 2012 03:56:22 +0900 (JST)
Subject: [ruby-changes:23278] naruse:r35329 (trunk): Adds another timeouts.
naruse 2012-04-15 03:56:12 +0900 (Sun, 15 Apr 2012) New Revision: 35329 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=35329 Log: Adds another timeouts. Modified files: trunk/test/json/test_json_generate.rb Index: test/json/test_json_generate.rb =================================================================== --- test/json/test_json_generate.rb (revision 35328) +++ test/json/test_json_generate.rb (revision 35329) @@ -217,9 +217,15 @@ require'timeout' def test_gc bignum_too_long_to_embed_as_string = 1234567890123456789012345 - expect = bignum_too_long_to_embed_as_string.to_s - GC.start - stress, GC.stress = GC.stress, true + expect = nil + stress = nil + timeout(1) do + expect = bignum_too_long_to_embed_as_string.to_s + end + timeout(30) do + GC.start + stress, GC.stress = GC.stress, true + end timeout(30) do 10.times do |i| -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/