File tree Expand file tree Collapse file tree 2 files changed +0
-12
lines changed
test/reline/yamatanooroti Expand file tree Collapse file tree 2 files changed +0
-12
lines changed Original file line number Diff line number Diff line change @@ -4,16 +4,6 @@ require 'reline'
44require 'optparse'
55require_relative 'termination_checker'
66
7- if ENV [ 'RELINE_STDERR_TTY' ]
8- if Reline ::IOGate . win?
9- $stderr = File . open ( ENV [ 'RELINE_STDERR_TTY' ] , 'a' )
10- else
11- $stderr. reopen ( ENV [ 'RELINE_STDERR_TTY' ] , 'w' )
12- end
13- $stderr. sync = true
14- $stderr. puts "Reline is used by #{ Process . pid } "
15- end
16-
177opt = OptionParser . new
188opt . on ( '--prompt-list-cache-timeout VAL' ) { |v |
199 Reline ::LineEditor . __send__ ( :remove_const , :PROMPT_LIST_CACHE_TIMEOUT )
Original file line number Diff line number Diff line change @@ -14,14 +14,12 @@ def setup
1414 FileUtils . rm_rf ( @tmpdir )
1515 Dir . mkdir ( @tmpdir )
1616 end
17- Dir . chdir ( @tmpdir )
1817 @inputrc_backup = ENV [ 'INPUTRC' ]
1918 @inputrc_file = ENV [ 'INPUTRC' ] = File . join ( @tmpdir , 'temporaty_inputrc' )
2019 File . unlink ( @inputrc_file ) if File . exist? ( @inputrc_file )
2120 end
2221
2322 def teardown
24- Dir . chdir ( @pwd )
2523 FileUtils . rm_rf ( @tmpdir )
2624 ENV [ 'INPUTRC' ] = @inputrc_backup
2725 ENV . delete ( 'RELINE_TEST_PROMPT' ) if ENV [ 'RELINE_TEST_PROMPT' ]
You can’t perform that action at this time.
0 commit comments