summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorshugo <shugo@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2005-06-17 16:18:56 +0000
committershugo <shugo@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2005-06-17 16:18:56 +0000
commit4a3fffdccbfbf348d23d2192c81b81b3fe5b5405 (patch)
treec5ad114e73db2ac4f933c59a424c7c87f6883385 /test
parentedf7bc24641f9ba9bc9f2fa58f2012d179cb78f3 (diff)
* ext/readline/readline.c (readline_readline): do not set rl_{in,out}stream.
* ext/readline/readline.c (readline_s_set_input): new method. * ext/readline/readline.c (readline_s_set_output): new method. * lib/irb/input-method.rb: set Readline.input and Readline.output. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@8638 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test')
-rw-r--r--test/readline/test_readline.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/test/readline/test_readline.rb b/test/readline/test_readline.rb
index 3041683806..b6f2d2c8b6 100644
--- a/test/readline/test_readline.rb
+++ b/test/readline/test_readline.rb
@@ -67,6 +67,8 @@ class TestReadline < Test::Unit::TestCase
STDIN.reopen(stdin_path, "r")
STDOUT.reopen(stdout_path, "w")
begin
+ Readline.input = STDIN
+ Readline.output = STDOUT
yield
ensure
STDIN.reopen(orig_stdin)