mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* test/ruby/test_process.rb (TestProcess#test_popen_exit): platform specific
option. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@51810 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
67f7e82eed
commit
01762af749
1 changed files with 2 additions and 1 deletions
|
@ -1718,7 +1718,8 @@ class TestProcess < Test::Unit::TestCase
|
||||||
def test_popen_exit
|
def test_popen_exit
|
||||||
bug11510 = '[ruby-core:70671] [Bug #11510]'
|
bug11510 = '[ruby-core:70671] [Bug #11510]'
|
||||||
pid = nil
|
pid = nil
|
||||||
opt = {timeout: 10, pgroup: true, stdout_filter: ->(s) {pid = s}}
|
opt = {timeout: 10, stdout_filter: ->(s) {pid = s}}
|
||||||
|
opt[:pgroup] = true unless windows?
|
||||||
assert_ruby_status(["-", RUBY], <<-'end;', bug11510, **opt)
|
assert_ruby_status(["-", RUBY], <<-'end;', bug11510, **opt)
|
||||||
RUBY = ARGV[0]
|
RUBY = ARGV[0]
|
||||||
th = Thread.start {
|
th = Thread.start {
|
||||||
|
|
Loading…
Add table
Reference in a new issue