aboutsummaryrefslogtreecommitdiffstats
path: root/bootstraptest/test_io.rb
diff options
context:
space:
mode:
authormatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2007-12-25 09:52:52 +0000
committermatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2007-12-25 09:52:52 +0000
commit3878b30881f46dab1458e70eaa6272dcff636518 (patch)
tree075528f8f7f8a44c22889851a6b1c60acdbb8500 /bootstraptest/test_io.rb
parent36df55c6e4dff444d92eb5c44d2ecb65567427e6 (diff)
downloadruby-3878b30881f46dab1458e70eaa6272dcff636518.tar.gz
* io.c (appendline): move RS comparison to rb_io_getline_1().
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14691 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'bootstraptest/test_io.rb')
-rw-r--r--bootstraptest/test_io.rb10
1 files changed, 10 insertions, 0 deletions
diff --git a/bootstraptest/test_io.rb b/bootstraptest/test_io.rb
index fa3654379f..019a82d9bd 100644
--- a/bootstraptest/test_io.rb
+++ b/bootstraptest/test_io.rb
@@ -26,3 +26,13 @@ assert_finish 10, %q{
rescue LoadError
end
}, '[ruby-dev:32566]'
+
+assert_finish 1, %q{
+ r, w = IO.pipe
+ Thread.new {
+ w << "ab"
+ sleep 0.1
+ w << "ab"
+ }
+ p r.gets("abab")
+}