1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

Give up stabilizing TestProcess on Travis osx

They have been too unstable.

Revert "Extend sleep before sending USR1 in TestProcess"
This reverts commit aaf69a8ba8.

Revert "Extend sleep before sending USR1 in TestProcess"
This reverts commit 076f3fcf11.
This commit is contained in:
Takashi Kokubun 2019-08-06 00:43:46 +09:00
parent 48d460d9a6
commit e80f407ed4
No known key found for this signature in database
GPG key ID: 6FFC433B12EE23DD
2 changed files with 9 additions and 2 deletions

View file

@ -0,0 +1,7 @@
# These tests randomly hang forever. For testing other things properly, skipped for now.
# https://travis-ci.org/ruby/ruby/jobs/566409880
exclude(:test_execopts_redirect_open_fifo_interrupt_raise, 'This test randomly hangs on Travis osx')
# https://travis-ci.org/ruby/ruby/jobs/567547060
exclude(:test_execopts_redirect_open_fifo_interrupt_print, 'This test randomly hangs on Travis osx')

View file

@ -665,7 +665,7 @@ class TestProcess < Test::Unit::TestCase
end
EOS
assert_equal("start\n", io.gets)
sleep 3
sleep 0.5
Process.kill(:USR1, io.pid)
assert_equal("ok\n", io.read)
}
@ -686,7 +686,7 @@ class TestProcess < Test::Unit::TestCase
system("cat", :in => "fifo")
EOS
assert_equal("start\n", io.gets)
sleep 3 # wait for the child to stop at opening "fifo"
sleep 0.2 # 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")