summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCharles Oliver Nutter <headius@headius.com>2024-10-30 14:45:30 -0500
committerCharles Oliver Nutter <headius@headius.com>2024-10-30 15:30:28 -0500
commit22abcce704cf3d82aaa9af5b8ae4e6bf628502ea (patch)
tree571b538673d2ff4b24146d7b2a1104703f9ad47f
parent5da1cc6c9c548bf95599ad7aa1b3877f8ccda953 (diff)
Only check RubyVM on CRuby
Blind use of the RubyVM constant here prevents this test from running on non-CRuby. This patch guards it with RUBY_ENGINE == "ruby" to make sure that doesn't happen.
Notes
Notes: Merged: https://github.com/ruby/ruby/pull/11964
-rw-r--r--test/coverage/test_coverage.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/coverage/test_coverage.rb b/test/coverage/test_coverage.rb
index 2fe7f1b0b9..814b7e088b 100644
--- a/test/coverage/test_coverage.rb
+++ b/test/coverage/test_coverage.rb
@@ -11,7 +11,7 @@ class TestCoverage < Test::Unit::TestCase
# through.
ARGV = ["-rcoverage"]
- if RubyVM::InstructionSequence.compile('').to_a[4][:parser] == :prism
+ if RUBY_ENGINE == "ruby" && RubyVM::InstructionSequence.compile('').to_a[4][:parser] == :prism
ARGV << "-W:no-experimental"
ARGV << "--parser=prism"
end