Skip to content

Commit 2e3d7b8

Browse files
committed
Fix path to racc in test/mri/tests/racc/helper.rb
* The tests pass but they are slow so exclude them.
1 parent f94c15c commit 2e3d7b8

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

test/mri/failing.exclude

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@ ruby/test_pattern_matching.rb
4545
# Too slow
4646

4747
test_extlibs.rb
48+
racc/test_racc_command.rb
4849

4950
# Other issues
5051

test/mri/tests/racc/helper.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ class TestCase < Test::Unit::TestCase
2222
TEST_DIR = test_dir
2323
racc = File.join(PROJECT_DIR, 'bin', 'racc')
2424
racc = File.join(PROJECT_DIR, '..', 'libexec', 'racc') unless File.exist?(racc)
25+
racc = RbConfig::CONFIG["bindir"] + '/racc' if defined?(::TruffleRuby)
2526
RACC = racc
2627
ASSET_DIR = File.join(TEST_DIR, 'assets') # test grammars
2728
REGRESS_DIR = File.join(TEST_DIR, 'regress') # known-good generated outputs

0 commit comments

Comments
 (0)