summaryrefslogtreecommitdiff
path: root/test/racc
diff options
context:
space:
mode:
authorHiroshi SHIBATA <hsbt@ruby-lang.org>2019-06-02 13:56:57 +0300
committerHiroshi SHIBATA <hsbt@ruby-lang.org>2019-06-19 18:17:48 +0900
commit2272d6ae24d4a059d57bd1b0c01587a934258084 (patch)
tree33d883f34f5340b8091dd8a0b88e8af7cc72b9c2 /test/racc
parent9ea1fc27a93c9a7a8f9aa2f8f61bc2529e93abb2 (diff)
Restore test_dir and update prefix for Dir.mktmpdir.
Diffstat (limited to 'test/racc')
-rw-r--r--test/racc/helper.rb15
1 files changed, 8 insertions, 7 deletions
diff --git a/test/racc/helper.rb b/test/racc/helper.rb
index cee5094988..4695b61eaf 100644
--- a/test/racc/helper.rb
+++ b/test/racc/helper.rb
@@ -11,16 +11,17 @@ module Racc
test_dir = File.join(PROJECT_DIR, 'test')
test_dir = File.join(PROJECT_DIR, 'racc') unless File.exist?(test_dir)
- TEST_DIR = Dir.mktmpdir(test_dir)
+ TEST_DIR = test_dir
+ TEMP_DIR = Dir.mktmpdir("racc")
racc = File.join(PROJECT_DIR, 'bin', 'racc')
racc = File.join(PROJECT_DIR, '..', 'libexec', 'racc') unless File.exist?(racc)
RACC = racc
- OUT_DIR = File.join(TEST_DIR, 'out')
- 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
+ OUT_DIR = File.join(TEMP_DIR, 'out')
+ TAB_DIR = File.join(TEMP_DIR, 'tab') # generated parsers go here
+ LOG_DIR = File.join(TEMP_DIR, 'log')
+ ERR_DIR = File.join(TEMP_DIR, 'err')
+ 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'),