From 2c22379e811f9ab3f2692d459c075bb193f05e89 Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Tue, 10 Jul 2018 20:59:23 +0000 Subject: test/inherit.rb: fix syntax error under Ruby 1.8 Not sure if it's worth supporting 1.8, anymore, but parts of the Ruby VM test and benchmark suite still remain 1.8-compatible... --- test/inherit.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/test/inherit.rb b/test/inherit.rb index ebbcf4c..365f4b7 100644 --- a/test/inherit.rb +++ b/test/inherit.rb @@ -152,10 +152,11 @@ class TestInherit < Test::Unit::TestCase mport = mgmt.addr[1] cmd = %W(cmogstored --docroot=#@tmpdir --httplisten=#@host:#@port --mgmtlisten=#@host:#{mport} --maxconns=100) + cmd << { 3 => mgmt.fileno, 4 => @srv.fileno } @pid = fork do ENV['LISTEN_PID'] = "#$$" ENV['LISTEN_FDS'] = '2' - exec(*cmd, 3 => mgmt.fileno, 4 => @srv.fileno) + exec(*cmd) end # just ensure HTTP works after being inherited -- cgit v1.2.3-24-ge0c7