diff options
Diffstat (limited to 'test')
-rw-r--r-- | test/ruby/test_process.rb | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/test/ruby/test_process.rb b/test/ruby/test_process.rb index c787e78749..e26d0a46a5 100644 --- a/test/ruby/test_process.rb +++ b/test/ruby/test_process.rb @@ -1719,7 +1719,11 @@ class TestProcess < Test::Unit::TestCase bug11510 = '[ruby-core:70671] [Bug #11510]' pid = nil opt = {timeout: 10, stdout_filter: ->(s) {pid = s}} - opt[:pgroup] = true unless windows? + if windows? + opt[:new_pgroup] = true + else + opt[:pgroup] = true + end assert_ruby_status(["-", RUBY], <<-'end;', bug11510, **opt) RUBY = ARGV[0] th = Thread.start { |