summaryrefslogtreecommitdiffstats
path: root/bootstraptest
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-04-26 09:44:35 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-04-26 09:44:35 +0000
commitdbeb57a537d9f78b8e80b3e2960bbfec090507b3 (patch)
treeab8d275fbb72e2372e467beedb517302db6bef7a /bootstraptest
parent9c224036a16735f178ee43d2bb8c5a6e1e0349f3 (diff)
downloadruby-dbeb57a537d9f78b8e80b3e2960bbfec090507b3.tar.gz
ruby-dbeb57a537d9f78b8e80b3e2960bbfec090507b3.tar.xz
ruby-dbeb57a537d9f78b8e80b3e2960bbfec090507b3.zip
* bootstraptest/test_io.rb: test for [ruby-dev:38131].
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@23288 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'bootstraptest')
-rw-r--r--bootstraptest/test_io.rb6
1 files changed, 6 insertions, 0 deletions
diff --git a/bootstraptest/test_io.rb b/bootstraptest/test_io.rb
index 75570cd2c..83b38f8cc 100644
--- a/bootstraptest/test_io.rb
+++ b/bootstraptest/test_io.rb
@@ -92,3 +92,9 @@ assert_normal_exit %q{
r1.close; w1.close
}, '', ["INT"] or break
end
+
+assert_normal_exit %q{
+ r, w = IO.pipe
+ STDOUT.reopen(w)
+ STDOUT.reopen(__FILE__, "r")
+}, '[ruby-dev:38131]'