1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

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
This commit is contained in:
nobu 2013-04-17 06:39:41 +00:00
parent 385de15d55
commit 626235a6d7

View file

@ -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