summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2005-09-20 07:55:15 +0000
committermatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2005-09-20 07:55:15 +0000
commit10a898d70a823ed929ba19e85adc395358be2489 (patch)
tree9c5add8413201bf4e8d9974be545d4ee41db93c4
parentb36eba6e8752f794d898b9543e40868ad46c2ea9 (diff)
* 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
-rw-r--r--ChangeLog5
-rw-r--r--test/readline/test_readline.rb1
2 files changed, 6 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index ccd1ec4..f201ae9 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -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
diff --git a/test/readline/test_readline.rb b/test/readline/test_readline.rb
index 3041683..ac2966b 100644
--- a/test/readline/test_readline.rb
+++ b/test/readline/test_readline.rb
@@ -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")