summaryrefslogtreecommitdiff
path: root/spec
diff options
context:
space:
mode:
authoreregon <eregon@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2017-05-10 14:17:58 +0000
committereregon <eregon@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2017-05-10 14:17:58 +0000
commit0dc32472d75b54c8b70f55311c88502b07e591b5 (patch)
treea29684605cdff5c1f04c3d11f524094509eaaab4 /spec
parentd7181f726f07720cba037f0ae94b977455dc9bb9 (diff)
Use #system directly with multiple arguments in Process#kill specs
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@58649 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'spec')
-rw-r--r--spec/rubyspec/core/process/fixtures/kill.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/spec/rubyspec/core/process/fixtures/kill.rb b/spec/rubyspec/core/process/fixtures/kill.rb
index dfebc5b3c3..9f2d4f33a0 100644
--- a/spec/rubyspec/core/process/fixtures/kill.rb
+++ b/spec/rubyspec/core/process/fixtures/kill.rb
@@ -42,8 +42,8 @@ if scenario
raise "unknown scenario: #{scenario.inspect}"
end
- cmd = %[#{ruby_exe} -e 'Process.kill(#{signal}, #{process})']
- Thread.new { system cmd }.join
+ code = "Process.kill(#{signal}, #{process})"
+ system(*ruby_exe.split(' '), "-e", code)
end
-sleep 0.1 until signaled
+sleep 0.001 until signaled