summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-03-26 20:15:41 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-03-26 20:15:41 +0000
commit5426842df30fcf2d3251e9235bfb54d7c848602f (patch)
tree695f03843a3c1b8351e3ec38d651f99df93db06d /test
parent7cb47a315edd1c9317c11568fc8adc446b3e3b00 (diff)
test_syntax.rb: fix test error
* test/ruby/test_syntax.rb (test_syntax): escape interpolation to use the value passed by ARGV. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39955 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test')
-rw-r--r--test/ruby/test_syntax.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/ruby/test_syntax.rb b/test/ruby/test_syntax.rb
index 2cbe61dd10..61507ecd83 100644
--- a/test/ruby/test_syntax.rb
+++ b/test/ruby/test_syntax.rb
@@ -7,7 +7,7 @@ class TestSyntax < Test::Unit::TestCase
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