From 9279d3f2556435190a74f3bdaa5ee887299366b1 Mon Sep 17 00:00:00 2001 From: aycabta Date: Thu, 14 Jan 2021 06:22:56 +0900 Subject: [ruby/reline] Tests with yamatanooroti don't need chdir Because of chdir, log files ware created in temporary directries on Windows. https://github.com/ruby/reline/commit/200b469a68 --- test/reline/yamatanooroti/test_rendering.rb | 2 -- 1 file changed, 2 deletions(-) (limited to 'test/reline/yamatanooroti') diff --git a/test/reline/yamatanooroti/test_rendering.rb b/test/reline/yamatanooroti/test_rendering.rb index f4a5919b6c..389d65a55a 100644 --- a/test/reline/yamatanooroti/test_rendering.rb +++ b/test/reline/yamatanooroti/test_rendering.rb @@ -14,14 +14,12 @@ begin FileUtils.rm_rf(@tmpdir) Dir.mkdir(@tmpdir) end - Dir.chdir(@tmpdir) @inputrc_backup = ENV['INPUTRC'] @inputrc_file = ENV['INPUTRC'] = File.join(@tmpdir, 'temporaty_inputrc') File.unlink(@inputrc_file) if File.exist?(@inputrc_file) end def teardown - Dir.chdir(@pwd) FileUtils.rm_rf(@tmpdir) ENV['INPUTRC'] = @inputrc_backup ENV.delete('RELINE_TEST_PROMPT') if ENV['RELINE_TEST_PROMPT'] -- cgit v1.2.3