summaryrefslogtreecommitdiff
path: root/test/-ext-/bug_reporter/test_bug_reporter.rb
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/-ext-/bug_reporter/test_bug_reporter.rb
parentda21a2c388852205e325b71b6400b7dd351146bb (diff)
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/-ext-/bug_reporter/test_bug_reporter.rb')
-rw-r--r--test/-ext-/bug_reporter/test_bug_reporter.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/test/-ext-/bug_reporter/test_bug_reporter.rb b/test/-ext-/bug_reporter/test_bug_reporter.rb
index 6e955e2cbd..8e1121f908 100644
--- a/test/-ext-/bug_reporter/test_bug_reporter.rb
+++ b/test/-ext-/bug_reporter/test_bug_reporter.rb
@@ -1,12 +1,14 @@
# frozen_string_literal: false
require 'test/unit'
require 'tmpdir'
+require_relative '../../lib/jit_support'
class TestBugReporter < Test::Unit::TestCase
def test_bug_reporter_add
omit if ENV['RUBY_ON_BUG']
description = RUBY_DESCRIPTION
+ description = description.sub(/\+MJIT /, '') unless JITSupport.mjit_force_enabled?
expected_stderr = [
:*,
/\[BUG\]\sSegmentation\sfault.*\n/,