diff options
author | naruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2010-11-15 09:09:39 +0000 |
---|---|---|
committer | naruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2010-11-15 09:09:39 +0000 |
commit | cb2235c112aade58af0f0c367b71f3a2662c89bc (patch) | |
tree | 69f089aa3fad346f7840b6d33594e12882f6bb0e /test | |
parent | b73d1fbd2518c4d06ab245c7999dffa579d2b4f9 (diff) | |
download | ruby-cb2235c112aade58af0f0c367b71f3a2662c89bc.tar.gz |
Avoid timing problem.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@29790 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test')
-rw-r--r-- | test/ruby/test_process.rb | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/test/ruby/test_process.rb b/test/ruby/test_process.rb index 3ea636b329..d490c2ae53 100644 --- a/test/ruby/test_process.rb +++ b/test/ruby/test_process.rb @@ -1187,13 +1187,9 @@ class TestProcess < Test::Unit::TestCase def test_wait_and_sigchild signal_received = [] Signal.trap(:CHLD) { signal_received << true } - pid = fork { sleep 1; exit } + pid = fork { sleep 2; exit } Thread.start { raise } Process.wait pid - 5.times do - sleep 1 - break unless signal_received.empty? - end assert_equal [true], signal_received, " [ruby-core:19744]" rescue NotImplementedError, ArgumentError ensure |