diff options
author | naruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2013-03-26 01:13:41 +0000 |
---|---|---|
committer | naruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2013-03-26 01:13:41 +0000 |
commit | 76ba59645c0078f03775ac766e1483529064808b (patch) | |
tree | 8ab14918bff098cf2d9ab38a6715a6042d656ae3 /test | |
parent | ed90272e000c293b57fbfba4c6b6ea133860929a (diff) | |
download | ruby-76ba59645c0078f03775ac766e1483529064808b.tar.gz |
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
Diffstat (limited to 'test')
-rw-r--r-- | test/ruby/test_syntax.rb | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/test/ruby/test_syntax.rb b/test/ruby/test_syntax.rb index 823b64692c..a8e8f9b6f2 100644 --- a/test/ruby/test_syntax.rb +++ b/test/ruby/test_syntax.rb @@ -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 |