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

ruby-changes:56808

From: Takashi <ko1@a...>
Date: Sun, 4 Aug 2019 23:42:05 +0900 (JST)
Subject: [ruby-changes:56808] Takashi Kokubun: aaf69a8ba8 (master): Extend sleep before sending USR1 in TestProcess

https://git.ruby-lang.org/ruby.git/commit/?id=aaf69a8ba8

From aaf69a8ba866193863a7eafe5c6044844bd71bc3 Mon Sep 17 00:00:00 2001
From: Takashi Kokubun <takashikkbn@g...>
Date: Sun, 4 Aug 2019 23:41:33 +0900
Subject: Extend sleep before sending USR1 in TestProcess

just like 076f3fcf11a061394d3d5f8c671512df1e983023.

This test also hanged on Travis osx
https://travis-ci.org/ruby/ruby/jobs/567547060

diff --git a/test/ruby/test_process.rb b/test/ruby/test_process.rb
index 68b07a1..c51f802 100644
--- a/test/ruby/test_process.rb
+++ b/test/ruby/test_process.rb
@@ -688,7 +688,7 @@ class TestProcess < Test::Unit::TestCase https://github.com/ruby/ruby/blob/trunk/test/ruby/test_process.rb#L688
         system("cat", :in => "fifo")
       EOS
         assert_equal("start\n", io.gets)
-        sleep 0.2 # wait for the child to stop at opening "fifo"
+        sleep 3 # wait for the child to stop at opening "fifo"
         Process.kill(:USR1, io.pid)
         assert_equal("trap\n", io.readpartial(8))
         File.write("fifo", "ok\n")
-- 
cgit v0.10.2


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

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