ruby-changes:23330
From: naruse <ko1@a...>
Date: Wed, 18 Apr 2012 12:31:20 +0900 (JST)
Subject: [ruby-changes:23330] naruse:r35381 (trunk): Disable GC for slow this test.
naruse 2012-04-18 12:31:11 +0900 (Wed, 18 Apr 2012) New Revision: 35381 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=35381 Log: Disable GC for slow this test. Modified files: trunk/test/ruby/test_literal.rb Index: test/ruby/test_literal.rb =================================================================== --- test/ruby/test_literal.rb (revision 35380) +++ test/ruby/test_literal.rb (revision 35381) @@ -188,10 +188,10 @@ end def test_big_array_and_hash_literal - assert_normal_exit %q{x = nil; raise if eval("[#{(1..1_000_000).map{'x'}.join(", ")}]").size != 1_000_000}, "", timeout: 300 - assert_normal_exit %q{x = nil; raise if eval("[#{(1..1_000_000).to_a.join(", ")}]").size != 1_000_000}, "", timeout: 300 - assert_normal_exit %q{x = nil; raise if eval("{#{(1..1_000_000).map{|n| "#{n} => x"}.join(', ')}}").size != 1_000_000}, "", timeout: 300 - assert_normal_exit %q{x = nil; raise if eval("{#{(1..1_000_000).map{|n| "#{n} => #{n}"}.join(', ')}}").size != 1_000_000}, "", timeout: 300 + assert_normal_exit %q{GC.disable=true; x = nil; raise if eval("[#{(1..1_000_000).map{'x'}.join(", ")}]").size != 1_000_000}, "", timeout: 300, child_env: %[--disable-gems] + assert_normal_exit %q{GC.disable=true; x = nil; raise if eval("[#{(1..1_000_000).to_a.join(", ")}]").size != 1_000_000}, "", timeout: 300, child_env: %[--disable-gems] + assert_normal_exit %q{GC.disable=true; x = nil; raise if eval("{#{(1..1_000_000).map{|n| "#{n} => x"}.join(', ')}}").size != 1_000_000}, "", timeout: 300, child_env: %[--disable-gems] + assert_normal_exit %q{GC.disable=true; x = nil; raise if eval("{#{(1..1_000_000).map{|n| "#{n} => #{n}"}.join(', ')}}").size != 1_000_000}, "", timeout: 300, child_env: %[--disable-gems] end def test_range -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/