Hiroshi SHIBATA 2023-03-22 16:32:23 +09:00
parent 8d1109c03b
commit 43d20596b8
No known key found for this signature in database
GPG Key ID: F9CF13417264FAC2

View File

@ -1526,7 +1526,7 @@ class TestProcess < Test::Unit::TestCase
def test_wait_exception
bug11340 = '[ruby-dev:49176] [Bug #11340]'
t0 = t1 = nil
sec = 3
sec = RUBY_PLATFORM =~ /freebsd/ ? 6 : 3
code = "puts;STDOUT.flush;Thread.start{gets;exit};sleep(#{sec})"
IO.popen([RUBY, '-e', code], 'r+') do |f|
pid = f.pid