From 7d8743d5c50bb95d6f3296d125f921445eb07513 Mon Sep 17 00:00:00 2001 From: nobu Date: Sun, 10 Jun 2007 04:46:17 +0000 Subject: [PATCH] * test/ruby/test_beginendblock.rb (test_should_propagate_signaled): get rid of invoking shell. [ruby-dev:30942] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12503 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- ChangeLog | 5 +++++ test/ruby/test_beginendblock.rb | 19 +++++++++---------- 2 files changed, 14 insertions(+), 10 deletions(-) diff --git a/ChangeLog b/ChangeLog index f5ae239ff9..cf6c475ab6 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +Sun Jun 10 13:47:36 2007 Nobuyoshi Nakada + + * test/ruby/test_beginendblock.rb (test_should_propagate_signaled): + get rid of invoking shell. [ruby-dev:30942] + Sun Jun 10 12:56:46 2007 Nobuyoshi Nakada * include/ruby: moved public headers. diff --git a/test/ruby/test_beginendblock.rb b/test/ruby/test_beginendblock.rb index 3b087593cd..ec3fcf8c87 100644 --- a/test/ruby/test_beginendblock.rb +++ b/test/ruby/test_beginendblock.rb @@ -13,7 +13,7 @@ class TestBeginEndBlock < Test::Unit::TestCase def test_beginendblock ruby = EnvUtil.rubybin target = File.join(DIR, 'beginmainend.rb') - result = IO.popen("#{q(ruby)} #{q(target)}"){|io|io.read} + result = IO.popen([ruby, target]){|io|io.read} assert_equal(%w(b1 b2-1 b2 main b3-1 b3 b4 e1 e4 e3 e2 e4-2 e4-1 e1-1 e4-1-1), result.split) end @@ -38,14 +38,13 @@ errout = ARGV.shift STDERR.reopen(File.open(errout, "w")) STDERR.sync = true Dir.chdir(#{q(DIR)}) -cmd = "\\"#{ruby}\\" \\"endblockwarn.rb\\"" -system(cmd) +system("#{ruby}", "endblockwarn.rb") EOF launcher.close launcherpath = launcher.path errout.close erroutpath = errout.path - system("#{q(ruby)} #{q(launcherpath)} #{q(erroutpath)}") + system(ruby, launcherpath, erroutpath) expected = <