зеркало из https://github.com/github/ruby.git
Delay signal bit more.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@50230 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
Родитель
3d2468240d
Коммит
8e7b572d97
|
@ -587,7 +587,7 @@ class TestProcess < Test::Unit::TestCase
|
|||
puts "ok"
|
||||
end
|
||||
EOS
|
||||
sleep 0.1
|
||||
sleep 0.5
|
||||
Process.kill(:USR1, io.pid)
|
||||
assert_equal("ok\n", io.read)
|
||||
}
|
||||
|
@ -602,7 +602,7 @@ class TestProcess < Test::Unit::TestCase
|
|||
trap(:USR1) { print "trap\n" }
|
||||
system("cat", :in => "fifo")
|
||||
EOS
|
||||
sleep 0.1
|
||||
sleep 0.5
|
||||
Process.kill(:USR1, io.pid)
|
||||
sleep 0.1
|
||||
File.write("fifo", "ok\n")
|
||||
|
|
Загрузка…
Ссылка в новой задаче