* 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:
matz 2005-09-20 07:55:15 +00:00
parent b36eba6e87
commit 10a898d70a
2 changed files with 6 additions and 0 deletions

View file

@ -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> 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 * ext/syck/emitter.c (syck_scan_scalar): prevent indicators from

View file

@ -62,6 +62,7 @@ class TestReadline < Test::Unit::TestCase
private private
def replace_stdio(stdin_path, stdout_path) def replace_stdio(stdin_path, stdout_path)
STDIN.seek(0, File::SEEK_SET) rescue nil
orig_stdin = STDIN.dup orig_stdin = STDIN.dup
orig_stdout = STDOUT.dup orig_stdout = STDOUT.dup
STDIN.reopen(stdin_path, "r") STDIN.reopen(stdin_path, "r")