diff options
author | eregon <eregon@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2017-05-10 14:17:58 +0000 |
---|---|---|
committer | eregon <eregon@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2017-05-10 14:17:58 +0000 |
commit | 3fc680bf35077a474eb086a9af98b725f79817c9 (patch) | |
tree | a29684605cdff5c1f04c3d11f524094509eaaab4 | |
parent | 004c98caf3e63066b6a9c9b839aaeca679eee32a (diff) | |
download | ruby-3fc680bf35077a474eb086a9af98b725f79817c9.tar.gz |
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
-rw-r--r-- | spec/rubyspec/core/process/fixtures/kill.rb | 6 |
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 |