Bug #373 » test_io_noblock.patch
test/ruby/test_io.rb (working copy) | ||
---|---|---|
print "no" if ok != 2
|
||
print "ok"
|
||
End
|
||
assert_equal("ok", f.read)
|
||
begin
|
||
Timeout.timeout(10) do
|
||
assert_equal("ok", f.read)
|
||
end
|
||
rescue TimeoutError
|
||
Process.kill(:KILL, f.pid)
|
||
raise
|
||
end
|
||
}
|
||
end
|
||