1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

Use assert_separately to speed up on test-all

This creates large string and it pressure GC.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39932 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
naruse 2013-03-26 01:13:41 +00:00
parent ed90272e00
commit 76ba59645c

View file

@ -3,11 +3,13 @@ require_relative 'envutil'
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