ruby-changes:27903
From: nobu <ko1@a...>
Date: Wed, 27 Mar 2013 05:15:52 +0900 (JST)
Subject: [ruby-changes:27903] nobu:r39955 (trunk): test_syntax.rb: fix test error
nobu 2013-03-27 05:15:41 +0900 (Wed, 27 Mar 2013) New Revision: 39955 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=39955 Log: test_syntax.rb: fix test error * test/ruby/test_syntax.rb (test_syntax): escape interpolation to use the value passed by ARGV. Modified files: trunk/test/ruby/test_syntax.rb Index: test/ruby/test_syntax.rb =================================================================== --- test/ruby/test_syntax.rb (revision 39954) +++ test/ruby/test_syntax.rb (revision 39955) @@ -7,7 +7,7 @@ class TestSyntax < Test::Unit::TestCase https://github.com/ruby/ruby/blob/trunk/test/ruby/test_syntax.rb#L7 assert_separately(%W[--disable-gem -r#{__dir__}/envutil - #{srcdir}], __FILE__, __LINE__, <<-eom, timeout: Float::INFINITY) dir = ARGV.shift - for script in Dir["#{srcdir}/{lib,sample,ext,test}/**/*.rb"].sort + for script in Dir["\#{dir}/{lib,sample,ext,test}/**/*.rb"].sort assert_valid_syntax(IO::read(script), script) end eom -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/