diff options
author | usa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2015-09-09 02:57:58 +0000 |
---|---|---|
committer | usa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2015-09-09 02:57:58 +0000 |
commit | dbe4a7f11c7f3bd6d60f88dbaef448a5491633b7 (patch) | |
tree | f6649339b761d4c845e099c54cb81359ab41ef9a /test | |
parent | 01762af74905ce23be183f2e9494d684ee479ecb (diff) | |
download | ruby-dbe4a7f11c7f3bd6d60f88dbaef448a5491633b7.tar.gz |
* test/ruby/test_process.rb (TestProcess#test_popen_exit): platform specific
option.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@51811 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
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 { |