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:
parent
ed90272e00
commit
76ba59645c
1 changed files with 2 additions and 0 deletions
|
@ -3,11 +3,13 @@ require_relative 'envutil'
|
||||||
|
|
||||||
class TestSyntax < Test::Unit::TestCase
|
class TestSyntax < Test::Unit::TestCase
|
||||||
def test_syntax
|
def test_syntax
|
||||||
|
assert_separately %w[--disable-gem], __FILE__, __LINE__, <<-'eom'
|
||||||
assert_nothing_raised(Exception) do
|
assert_nothing_raised(Exception) do
|
||||||
for script in Dir[File.expand_path("../../../{lib,sample,ext,test}/**/*.rb", __FILE__)].sort
|
for script in Dir[File.expand_path("../../../{lib,sample,ext,test}/**/*.rb", __FILE__)].sort
|
||||||
assert_valid_syntax(IO::read(script), script)
|
assert_valid_syntax(IO::read(script), script)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
eom
|
||||||
end
|
end
|
||||||
|
|
||||||
def test_must_ascii_compatible
|
def test_must_ascii_compatible
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue