ruby-changes:70123
From: Charles <ko1@a...>
Date: Thu, 9 Dec 2021 19:34:25 +0900 (JST)
Subject: [ruby-changes:70123] 34ebd13923 (master): [ruby/open3] Only use JITSupport on CRuby
https://git.ruby-lang.org/ruby.git/commit/?id=34ebd13923 From 34ebd1392318b45f120f4d598f710bfcf5069c51 Mon Sep 17 00:00:00 2001 From: Charles Oliver Nutter <headius@h...> Date: Wed, 29 Sep 2021 12:40:14 -0500 Subject: [ruby/open3] Only use JITSupport on CRuby Fixes #2 https://github.com/ruby/open3/commit/6b7ede69e8 --- test/test_open3.rb | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/test/test_open3.rb b/test/test_open3.rb index 47d471c031a..699b05a90c2 100644 --- a/test/test_open3.rb +++ b/test/test_open3.rb @@ -2,7 +2,10 @@ https://github.com/ruby/ruby/blob/trunk/test/test_open3.rb#L2 require 'test/unit' require 'open3' -require_relative 'lib/jit_support' + +if RUBY_ENGINE == 'ruby' + require_relative 'lib/jit_support' +end class TestOpen3 < Test::Unit::TestCase RUBY = EnvUtil.rubybin @@ -127,7 +130,11 @@ class TestOpen3 < Test::Unit::TestCase https://github.com/ruby/ruby/blob/trunk/test/test_open3.rb#L130 i.close STDERR.reopen(old) assert_equal("zo", o.read) - assert_equal("ze", JITSupport.remove_mjit_logs(r.read)) + if defined?(JITSupport) + assert_equal("ze", JITSupport.remove_mjit_logs(r.read)) + else + assert_equal("ze", r.read) + end } } } -- cgit v1.2.1 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/