From 6c74c73f954dbc81c049e32783c03f154a3427cf Mon Sep 17 00:00:00 2001 From: normal Date: Wed, 27 Jun 2018 18:27:58 +0000 Subject: tests: increase timeouts and speedup some slow tests I'm still using the computer from 2005, so enabling MJIT makes some tests take longer. For test_deadlock_by_signal_at_forking I got it down to 135s to 89s by disabling RubyGems. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@63774 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- bootstraptest/test_io.rb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'bootstraptest') diff --git a/bootstraptest/test_io.rb b/bootstraptest/test_io.rb index 89c00d0..731c3e4 100644 --- a/bootstraptest/test_io.rb +++ b/bootstraptest/test_io.rb @@ -30,11 +30,11 @@ assert_finish 10, %q{ end }, '[ruby-dev:32566]' -assert_finish 1, %q{ +assert_finish 2, %q{ r, w = IO.pipe - Thread.new { + Thread.new(Thread.current) { |parent| w << "ab" - sleep 0.01 + Thread.pass until parent.stop? w << "ab" } r.gets("abab") -- cgit v1.1