[jruby~main:a988aa5c] Allow MRI's test_signal to wait up to 5 seconds with 0.1s sleeps, to give
- From: nicksieger@kenai.com
- To: commits@jruby.kenai.com
- Subject: [jruby~main:a988aa5c] Allow MRI's test_signal to wait up to 5 seconds with 0.1s sleeps, to give
- Date: Wed, 17 Mar 2010 15:07:32 +0000
Project: jruby
Repository: main
Revision: a988aa5cce31c27df2cab563b21a78e985f321c0
Author: nicksieger
Date: 2010-03-17 15:06:41 UTC
Link:
Log Message:
------------
Allow MRI's test_signal to wait up to 5 seconds with 0.1s sleeps, to give
slower CI systems a chance to receive the signal.
Revisions:
----------
a988aa5cce31c27df2cab563b21a78e985f321c0
Modified Paths:
---------------
test/externals/ruby1.8/ruby/test_signal.rb
Diffs:
------
diff --git a/test/externals/ruby1.8/ruby/test_signal.rb
b/test/externals/ruby1.8/ruby/test_signal.rb
index 0277319..b359b57 100644
--- a/test/externals/ruby1.8/ruby/test_signal.rb
+++ b/test/externals/ruby1.8/ruby/test_signal.rb
@@ -24,7 +24,8 @@ class TestSignal < Test::Unit::TestCase
oldtrap = trap "SIGINT", proc{|sig| $x = 2}
Process.kill "SIGINT", $$
t = Time.now
- while (Time.now - t) < 1
+ while (Time.now - t) < 5
+ sleep 0.1
break if $x == 2
end
assert_equal(2, $x)
|
[jruby~main:a988aa5c] Allow MRI's test_signal to wait up to 5 seconds with 0.1s sleeps, to give |
nicksieger | 03/17/2010 |





