summaryrefslogtreecommitdiff
path: root/test/lib
diff options
context:
space:
mode:
authorTakashi Kokubun <takashikkbn@gmail.com>2022-07-10 23:01:09 -0700
committerTakashi Kokubun <takashikkbn@gmail.com>2022-07-10 23:10:36 -0700
commit203801566a186b7b1cbe899a06d0832923a1bdf9 (patch)
treef6cfb454201c82d0945940abd20303b3608010e5 /test/lib
parentda21a2c388852205e325b71b6400b7dd351146bb (diff)
downloadruby-203801566a186b7b1cbe899a06d0832923a1bdf9.tar.gz
Fix #5872 for MJIT GitHub Actions
If you run tests with RUN_OPTS=--mjit, the test fixes in https://github.com/ruby/ruby/pull/5872 don't work.
Diffstat (limited to 'test/lib')
-rw-r--r--test/lib/jit_support.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/test/lib/jit_support.rb b/test/lib/jit_support.rb
index c7618e03a0..e607df4cab 100644
--- a/test/lib/jit_support.rb
+++ b/test/lib/jit_support.rb
@@ -96,4 +96,8 @@ module JITSupport
RbConfig::CONFIG['CC'].start_with?('gcc') &&
stderr.include?("error trying to exec 'cc1': execvp: No such file or directory")
end
+
+ def mjit_force_enabled?
+ "#{RbConfig::CONFIG['CFLAGS']} #{RbConfig::CONFIG['CPPFLAGS']}".match?(/(\A|\s)-D ?MJIT_FORCE_ENABLE\b/)
+ end
end