summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--test/excludes/_travis/osx/TestProcess.rb7
-rw-r--r--test/ruby/test_process.rb4
2 files changed, 9 insertions, 2 deletions
diff --git a/test/excludes/_travis/osx/TestProcess.rb b/test/excludes/_travis/osx/TestProcess.rb
new file mode 100644
index 0000000000..5aa03d5ead
--- /dev/null
+++ b/test/excludes/_travis/osx/TestProcess.rb
@@ -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')
diff --git a/test/ruby/test_process.rb b/test/ruby/test_process.rb
index 1d20c11ecc..83c9c6a867 100644
--- a/test/ruby/test_process.rb
+++ b/test/ruby/test_process.rb
@@ -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")