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'
4
4
require 'optparse'
5
5
require_relative 'termination_checker'
6
6
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
-
17
7
opt = OptionParser . new
18
8
opt . on ( '--prompt-list-cache-timeout VAL' ) { |v |
19
9
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
14
14
FileUtils . rm_rf ( @tmpdir )
15
15
Dir . mkdir ( @tmpdir )
16
16
end
17
- Dir . chdir ( @tmpdir )
18
17
@inputrc_backup = ENV [ 'INPUTRC' ]
19
18
@inputrc_file = ENV [ 'INPUTRC' ] = File . join ( @tmpdir , 'temporaty_inputrc' )
20
19
File . unlink ( @inputrc_file ) if File . exist? ( @inputrc_file )
21
20
end
22
21
23
22
def teardown
24
- Dir . chdir ( @pwd )
25
23
FileUtils . rm_rf ( @tmpdir )
26
24
ENV [ 'INPUTRC' ] = @inputrc_backup
27
25
ENV . delete ( 'RELINE_TEST_PROMPT' ) if ENV [ 'RELINE_TEST_PROMPT' ]
You can’t perform that action at this time.
0 commit comments