[前][次][番号順一覧][スレッド一覧]

ruby-changes:39730

From: usa <ko1@a...>
Date: Wed, 9 Sep 2015 11:58:28 +0900 (JST)
Subject: [ruby-changes:39730] usa:r51811 (trunk): * test/ruby/test_process.rb (TestProcess#test_popen_exit): platform specific

usa	2015-09-09 11:57:58 +0900 (Wed, 09 Sep 2015)

  New Revision: 51811

  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=51811

  Log:
    * test/ruby/test_process.rb (TestProcess#test_popen_exit): platform specific
      option.

  Modified files:
    trunk/test/ruby/test_process.rb
Index: test/ruby/test_process.rb
===================================================================
--- test/ruby/test_process.rb	(revision 51810)
+++ test/ruby/test_process.rb	(revision 51811)
@@ -1719,7 +1719,11 @@ class TestProcess < Test::Unit::TestCase https://github.com/ruby/ruby/blob/trunk/test/ruby/test_process.rb#L1719
     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 {

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]