1 2 3 4 5 6 7 8 9
assert_finish 5, %q{ r, w = IO.pipe t1 = Thread.new { r.sysread(1) } t2 = Thread.new { r.sysread(1) } sleep 0.1 w.write "a" sleep 0.1 w.write "a" }, '[ruby-dev:31866]'