ruby-changes:27880
From: naruse <ko1@a...>
Date: Tue, 26 Mar 2013 10:13:51 +0900 (JST)
Subject: [ruby-changes:27880] naruse:r39932 (trunk): Use assert_separately to speed up on test-all
naruse 2013-03-26 10:13:41 +0900 (Tue, 26 Mar 2013) New Revision: 39932 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=39932 Log: Use assert_separately to speed up on test-all This creates large string and it pressure GC. Modified files: trunk/test/ruby/test_syntax.rb Index: test/ruby/test_syntax.rb =================================================================== --- test/ruby/test_syntax.rb (revision 39931) +++ test/ruby/test_syntax.rb (revision 39932) @@ -3,11 +3,13 @@ require_relative 'envutil' https://github.com/ruby/ruby/blob/trunk/test/ruby/test_syntax.rb#L3 class TestSyntax < Test::Unit::TestCase def test_syntax + assert_separately %w[--disable-gem], __FILE__, __LINE__, <<-'eom' assert_nothing_raised(Exception) do for script in Dir[File.expand_path("../../../{lib,sample,ext,test}/**/*.rb", __FILE__)].sort assert_valid_syntax(IO::read(script), script) end end + eom end def test_must_ascii_compatible -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/