From d3ba14a31d45b7132e193d51742f59e121f211a0 Mon Sep 17 00:00:00 2001 From: Kevin Newton Date: Thu, 1 Feb 2024 13:43:32 -0500 Subject: [PATCH] [PRISM] Do not shell out in prism tests --- test/ruby/test_compile_prism.rb | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/test/ruby/test_compile_prism.rb b/test/ruby/test_compile_prism.rb index aecb223bcc..69cc6980b0 100644 --- a/test/ruby/test_compile_prism.rb +++ b/test/ruby/test_compile_prism.rb @@ -720,8 +720,15 @@ module Prism end def test_InterpolatedXStringNode - assert_prism_eval('`echo #{1}`') - assert_prism_eval('`echo #{"100"}`') + assert_prism_eval(<<~RUBY) + def self.`(command) = command * 2 + `echo \#{1}` + RUBY + + assert_prism_eval(<<~RUBY) + def self.`(command) = command * 2 + `echo \#{"100"}` + RUBY end def test_MatchLastLineNode