aboutsummaryrefslogtreecommitdiffstats
path: root/bootstraptest/test_io.rb
diff options
context:
space:
mode:
Diffstat (limited to 'bootstraptest/test_io.rb')
-rw-r--r--bootstraptest/test_io.rb9
1 files changed, 9 insertions, 0 deletions
diff --git a/bootstraptest/test_io.rb b/bootstraptest/test_io.rb
new file mode 100644
index 0000000000..8cd2730c6a
--- /dev/null
+++ b/bootstraptest/test_io.rb
@@ -0,0 +1,9 @@
+assert_finish 1, %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]'