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 commitaaf69a8ba8. Revert "Extend sleep before sending USR1 in TestProcess" This reverts commit076f3fcf11.
This commit is contained in:
parent
48d460d9a6
commit
e80f407ed4
2 changed files with 9 additions and 2 deletions
7
test/excludes/_travis/osx/TestProcess.rb
Normal file
7
test/excludes/_travis/osx/TestProcess.rb
Normal 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')
|
||||||
|
|
@ -665,7 +665,7 @@ class TestProcess < Test::Unit::TestCase
|
||||||
end
|
end
|
||||||
EOS
|
EOS
|
||||||
assert_equal("start\n", io.gets)
|
assert_equal("start\n", io.gets)
|
||||||
sleep 3
|
sleep 0.5
|
||||||
Process.kill(:USR1, io.pid)
|
Process.kill(:USR1, io.pid)
|
||||||
assert_equal("ok\n", io.read)
|
assert_equal("ok\n", io.read)
|
||||||
}
|
}
|
||||||
|
|
@ -686,7 +686,7 @@ class TestProcess < Test::Unit::TestCase
|
||||||
system("cat", :in => "fifo")
|
system("cat", :in => "fifo")
|
||||||
EOS
|
EOS
|
||||||
assert_equal("start\n", io.gets)
|
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)
|
Process.kill(:USR1, io.pid)
|
||||||
assert_equal("trap\n", io.readpartial(8))
|
assert_equal("trap\n", io.readpartial(8))
|
||||||
File.write("fifo", "ok\n")
|
File.write("fifo", "ok\n")
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue