diff options
| author | Hiroshi SHIBATA <hsbt@ruby-lang.org> | 2024-01-24 16:07:26 +0900 |
|---|---|---|
| committer | Hiroshi SHIBATA <hsbt@ruby-lang.org> | 2024-01-25 10:51:18 +0900 |
| commit | 52085b66d6352c013c483fa9aac5d0b5c3e121e6 (patch) | |
| tree | 29dd91c402a926669b29fc534baf7fa61adfcc56 /test/ruby | |
| parent | 34c688b163aa44ff319575c3b3d7d6a5c0dc5260 (diff) | |
Use echo command in mswin platform
Diffstat (limited to 'test/ruby')
| -rw-r--r-- | test/ruby/test_compile_prism.rb | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/test/ruby/test_compile_prism.rb b/test/ruby/test_compile_prism.rb index c5b8bd4647..b8ca217142 100644 --- a/test/ruby/test_compile_prism.rb +++ b/test/ruby/test_compile_prism.rb @@ -724,7 +724,11 @@ module Prism def test_InterpolatedXStringNode assert_prism_eval('`echo #{1}`') - assert_prism_eval('`printf #{"100"}`') + if /mswin|ucrt/ =~ RUBY_PLATFORM + assert_prism_eval('`echo #{"100"}`') + else + assert_prism_eval('`printf #{"100"}`') + end end def test_MatchLastLineNode |
