mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* test/ruby/test_signal.rb (TestSignal#test_signal_process_group):
skip if the platform doesn't have :pgroup capability. (i.e. skip if mswin32) git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31582 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
d734c9dea2
commit
9e9543acb5
2 changed files with 8 additions and 0 deletions
|
@ -38,6 +38,8 @@ class TestSignal < Test::Unit::TestCase
|
|||
|
||||
def test_signal_process_group
|
||||
return unless Process.respond_to?(:kill)
|
||||
return unless Process.respond_to?(:pgroup) # for mswin32
|
||||
|
||||
bug4362 = '[ruby-dev:43169]'
|
||||
assert_nothing_raised(bug4362) do
|
||||
pid = Process.spawn(EnvUtil.rubybin, '-e', '"sleep 10"', :pgroup => true)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue