summaryrefslogtreecommitdiff
path: root/bootstraptest/test_io.rb
blob: e62b9d15a2b8971d23f1ad5f698e79831a41737e (plain)
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]'