* [PATCH] test/inherit.rb: fix syntax error under Ruby 1.8
@ 2018-07-10 20:59 Eric Wong
0 siblings, 0 replies; only message in thread
From: Eric Wong @ 2018-07-10 20:59 UTC (permalink / raw)
To: cmogstored-public
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
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2018-07-10 20:59 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-07-10 20:59 [PATCH] test/inherit.rb: fix syntax error under Ruby 1.8 Eric Wong
Code repositories for project(s) associated with this public inbox
https://yhbt.net/cmogstored.git/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).