From 5fdf36734886d933315b837173314f465ba25f46 Mon Sep 17 00:00:00 2001 From: akr Date: Fri, 13 Mar 2015 03:29:43 +0000 Subject: [PATCH] * test/readline/test_readline.rb: Restore environment variables: COLUMNS LINES git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@49958 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- ChangeLog | 5 +++++ test/readline/test_readline.rb | 3 +++ 2 files changed, 8 insertions(+) diff --git a/ChangeLog b/ChangeLog index 214a5690a8..f26b3f783b 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +Fri Mar 13 12:29:07 2015 Tanaka Akira + + * test/readline/test_readline.rb: Restore environment variables: + COLUMNS LINES + Fri Mar 13 11:37:46 2015 Nobuyoshi Nakada * ext/fiddle/extconf.rb: needs --enable-shared when linked to diff --git a/test/readline/test_readline.rb b/test/readline/test_readline.rb index 0c50a99bc9..89d72b560f 100644 --- a/test/readline/test_readline.rb +++ b/test/readline/test_readline.rb @@ -9,8 +9,10 @@ end class TestReadline < Test::Unit::TestCase INPUTRC = "INPUTRC" + SAVED_ENV = %w[COLUMNS LINES] def setup + @saved_env = ENV.values_at(*SAVED_ENV) @inputrc, ENV[INPUTRC] = ENV[INPUTRC], IO::NULL end @@ -24,6 +26,7 @@ class TestReadline < Test::Unit::TestCase end Readline.input = nil Readline.output = nil + SAVED_ENV.each_with_index {|k, i| ENV[k] = @saved_env[i] } end if !/EditLine/n.match(Readline::VERSION)