summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-04-17 06:39:41 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-04-17 06:39:41 +0000
commit626235a6d7f0808dd83baae73913efea4f71fa57 (patch)
tree2e5c0ee365e017f2fb9d934903a8347a06d486f1 /test
parent385de15d5534ed43597319fd926e033449cc4e68 (diff)
test_curses.rb: default TERM
* test/test_curses.rb (TestCurses#run_curses): default TERM environment variable which is needed by ncurses. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40333 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test')
-rw-r--r--test/test_curses.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/test_curses.rb b/test/test_curses.rb
index 7a3ae4cf6b..7bcb172e96 100644
--- a/test/test_curses.rb
+++ b/test/test_curses.rb
@@ -15,7 +15,7 @@ end if defined? Curses
class TestCurses
def run_curses(src, input = nil, timeout: 1)
- PTY.spawn(EnvUtil.rubybin, "-e", <<-"src") {|r, w, pid|
+ PTY.spawn({"TERM"=>ENV["TERM"]||"dumb"}, EnvUtil.rubybin, "-e", <<-"src") {|r, w, pid|
require 'timeout'
require 'curses'
include Curses