mirror of
https://github.com/ruby/ruby.git
synced 2025-08-27 23:16:42 +02:00
* test/readline/test_readline.rb (TestReadline::replace_stdio):
BSD seek support from [ruby-dev:25223]. fixed: [ruby-dev:27150] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@9243 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
b36eba6e87
commit
10a898d70a
2 changed files with 6 additions and 0 deletions
|
@ -1,3 +1,8 @@
|
|||
Tue Sep 20 16:53:53 2005 Yukihiro Matsumoto <matz@ruby-lang.org>
|
||||
|
||||
* test/readline/test_readline.rb (TestReadline::replace_stdio):
|
||||
BSD seek support from [ruby-dev:25223]. fixed: [ruby-dev:27150]
|
||||
|
||||
Tue Sep 20 15:39:40 2005 why the lucky stiff <why@ruby-lang.org>
|
||||
|
||||
* ext/syck/emitter.c (syck_scan_scalar): prevent indicators from
|
||||
|
|
|
@ -62,6 +62,7 @@ class TestReadline < Test::Unit::TestCase
|
|||
private
|
||||
|
||||
def replace_stdio(stdin_path, stdout_path)
|
||||
STDIN.seek(0, File::SEEK_SET) rescue nil
|
||||
orig_stdin = STDIN.dup
|
||||
orig_stdout = STDOUT.dup
|
||||
STDIN.reopen(stdin_path, "r")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue