summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorHiroshi SHIBATA <hsbt@ruby-lang.org>2019-06-02 13:17:38 +0300
committerHiroshi SHIBATA <hsbt@ruby-lang.org>2019-06-19 18:17:44 +0900
commit9ea1fc27a93c9a7a8f9aa2f8f61bc2529e93abb2 (patch)
treeb92e05bf34328fa4863fe681d9d7bc8bd30fc43c /test
parent4e218282d284c7d0ea1bf3db7e5febb2dd5884f8 (diff)
Try to use Dir.mktmpdir.
Diffstat (limited to 'test')
-rw-r--r--test/racc/helper.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/test/racc/helper.rb b/test/racc/helper.rb
index 1eaa7edfc6..cee5094988 100644
--- a/test/racc/helper.rb
+++ b/test/racc/helper.rb
@@ -11,7 +11,7 @@ module Racc
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
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'),