Skip to content

Commit 200b469

Browse files
committed
Tests with yamatanooroti don't need chdir
Because of chdir, log files ware created in temporary directries on Windows.
1 parent 29b10f6 commit 200b469

File tree

2 files changed

+0
-12
lines changed

2 files changed

+0
-12
lines changed

bin/multiline_repl

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -4,16 +4,6 @@ require 'reline'
44
require 'optparse'
55
require_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-
177
opt = OptionParser.new
188
opt.on('--prompt-list-cache-timeout VAL') { |v|
199
Reline::LineEditor.__send__(:remove_const, :PROMPT_LIST_CACHE_TIMEOUT)

test/reline/yamatanooroti/test_rendering.rb

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff 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']

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy