diff options
author | naruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2010-11-16 06:20:06 +0000 |
---|---|---|
committer | naruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2010-11-16 06:20:06 +0000 |
commit | 3124b5fc3efcd1ffc74e6093f96156139dfa2061 (patch) | |
tree | ebebea0adb57f265953e475a26f6da728a353f07 /test/ruby/test_process.rb | |
parent | 0ec61a315626fe978317e7b6d1fb8c6db9e1212e (diff) | |
download | ruby-3124b5fc3efcd1ffc74e6093f96156139dfa2061.tar.gz |
Refix timing problem.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@29806 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/ruby/test_process.rb')
-rw-r--r-- | test/ruby/test_process.rb | 3 |
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 |