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.
This commit is contained in:
parent
5da1cc6c9c
commit
22abcce704
Notes:
git
2024-10-30 20:30:47 +00:00
@ -11,7 +11,7 @@ class TestCoverage < Test::Unit::TestCase
|
|||||||
# through.
|
# through.
|
||||||
ARGV = ["-rcoverage"]
|
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 << "-W:no-experimental"
|
||||||
ARGV << "--parser=prism"
|
ARGV << "--parser=prism"
|
||||||
end
|
end
|
||||||
|
Loading…
x
Reference in New Issue
Block a user