aboutsummaryrefslogtreecommitdiffstats
path: root/test/ruby/test_signal.rb
diff options
context:
space:
mode:
Diffstat (limited to 'test/ruby/test_signal.rb')
-rw-r--r--test/ruby/test_signal.rb8
1 files changed, 4 insertions, 4 deletions
diff --git a/test/ruby/test_signal.rb b/test/ruby/test_signal.rb
index 9abf9887b6..331c1c5ee6 100644
--- a/test/ruby/test_signal.rb
+++ b/test/ruby/test_signal.rb
@@ -119,21 +119,21 @@ class TestSignal < Test::Unit::TestCase
Timeout.timeout(10) do
x = false
Process.kill(SignalException.new(:INT).signo, $$)
- nil until x
+ sleep(0.01) until x
x = false
Process.kill("INT", $$)
- nil until x
+ sleep(0.01) until x
x = false
Process.kill("SIGINT", $$)
- nil until x
+ sleep(0.01) until x
x = false
o = Object.new
def o.to_str; "SIGINT"; end
Process.kill(o, $$)
- nil until x
+ sleep(0.01) until x
end
assert_raise(ArgumentError) { Process.kill(Object.new, $$) }