diff options
author | normal <normal@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2018-06-27 18:27:58 +0000 |
---|---|---|
committer | normal <normal@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2018-06-27 18:27:58 +0000 |
commit | 6c74c73f954dbc81c049e32783c03f154a3427cf (patch) | |
tree | 852dc3a836daaf3e8857d35aebd95e581a74df02 /bootstraptest | |
parent | ddb301b6a21e587653e2a85bf89da3c5f124b249 (diff) | |
download | ruby-6c74c73f954dbc81c049e32783c03f154a3427cf.tar.gz |
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
Diffstat (limited to 'bootstraptest')
-rw-r--r-- | bootstraptest/test_io.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/bootstraptest/test_io.rb b/bootstraptest/test_io.rb index 89c00d0b88..731c3e4cc5 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") |