From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.1 (2015-04-28) on dcvr.yhbt.net X-Spam-Level: X-Spam-ASN: X-Spam-Status: No, score=-4.0 required=3.0 tests=ALL_TRUSTED,BAYES_00 shortcircuit=no autolearn=ham autolearn_force=no version=3.4.1 Received: from localhost (dcvr.yhbt.net [127.0.0.1]) by dcvr.yhbt.net (Postfix) with ESMTP id ADB481F85A for ; Tue, 10 Jul 2018 20:59:23 +0000 (UTC) From: Eric Wong To: cmogstored-public@bogomips.org Subject: [PATCH] test/inherit.rb: fix syntax error under Ruby 1.8 Date: Tue, 10 Jul 2018 20:59:23 +0000 Message-Id: <20180710205923.30983-1-e@80x24.org> List-Id: 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 -- EW