ruby-changes:56149
From: Hiroshi <ko1@a...>
Date: Wed, 19 Jun 2019 18:57:30 +0900 (JST)
Subject: [ruby-changes:56149] Hiroshi SHIBATA: 9ea1fc27a9 (trunk): Try to use Dir.mktmpdir.
https://git.ruby-lang.org/ruby.git/commit/?id=9ea1fc27a9 From 9ea1fc27a93c9a7a8f9aa2f8f61bc2529e93abb2 Mon Sep 17 00:00:00 2001 From: Hiroshi SHIBATA <hsbt@r...> Date: Sun, 2 Jun 2019 13:17:38 +0300 Subject: Try to use Dir.mktmpdir. diff --git a/test/racc/helper.rb b/test/racc/helper.rb index 1eaa7ed..cee5094 100644 --- a/test/racc/helper.rb +++ b/test/racc/helper.rb @@ -11,7 +11,7 @@ module Racc https://github.com/ruby/ruby/blob/trunk/test/racc/helper.rb#L11 test_dir = File.join(PROJECT_DIR, 'test') test_dir = File.join(PROJECT_DIR, 'racc') unless File.exist?(test_dir) - TEST_DIR = test_dir + TEST_DIR = Dir.mktmpdir(test_dir) racc = File.join(PROJECT_DIR, 'bin', 'racc') racc = File.join(PROJECT_DIR, '..', 'libexec', 'racc') unless File.exist?(racc) RACC = racc @@ -19,8 +19,8 @@ module Racc https://github.com/ruby/ruby/blob/trunk/test/racc/helper.rb#L19 TAB_DIR = File.join(TEST_DIR, 'tab') # generated parsers go here LOG_DIR = File.join(TEST_DIR, 'log') ERR_DIR = File.join(TEST_DIR, 'err') - ASSET_DIR = File.join(TEST_DIR, 'assets') # test grammars - REGRESS_DIR = File.join(TEST_DIR, 'regress') # known-good generated outputs + ASSET_DIR = File.join(test_dir, 'assets') # test grammars + REGRESS_DIR = File.join(test_dir, 'regress') # known-good generated outputs INC = [ File.join(PROJECT_DIR, 'lib'), -- cgit v0.10.2 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/