summaryrefslogtreecommitdiff
path: root/test/ruby
diff options
context:
space:
mode:
Diffstat (limited to 'test/ruby')
-rw-r--r--test/ruby/test_process.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/test/ruby/test_process.rb b/test/ruby/test_process.rb
index d490c2ae53..7e96b4062a 100644
--- a/test/ruby/test_process.rb
+++ b/test/ruby/test_process.rb
@@ -1187,9 +1187,10 @@ class TestProcess < Test::Unit::TestCase
def test_wait_and_sigchild
signal_received = []
Signal.trap(:CHLD) { signal_received << true }
- pid = fork { sleep 2; exit }
+ pid = fork { sleep 0.1; exit }
Thread.start { raise }
Process.wait pid
+ sleep 0.1
assert_equal [true], signal_received, " [ruby-core:19744]"
rescue NotImplementedError, ArgumentError
ensure