summaryrefslogtreecommitdiff
path: root/test/-ext-/bug_reporter/test_bug_reporter.rb
diff options
context:
space:
mode:
authorAlan Wu <XrXr@users.noreply.github.com>2021-10-07 18:05:10 -0400
committerAlan Wu <XrXr@users.noreply.github.com>2021-10-20 18:19:43 -0400
commitefed45966b3aac728bbbe2cfc7ec937b7712c146 (patch)
treefc6066abd18d13146e5c848f49127699b7f476da /test/-ext-/bug_reporter/test_bug_reporter.rb
parent13261f00fbe844261f364d51fc97318758d87c2b (diff)
Show +YJIT in version string and RUBY_DESCRIPTION
There might be code out there that expect `ruby -v` to print only one line. Since MJIT shows +JIT in `ruby -v` and RUBY_DESCRIPTION, let's show +YJIT. The crash report doesn't show anything about MJIT, so adjust the test. The "test_ruby_version" test was unaware of RUBY_YJIT_ENABLE and so was failing when the variable is set and inherited into the children processes it spawns. Explicitly unset the variable in the test.
Diffstat (limited to 'test/-ext-/bug_reporter/test_bug_reporter.rb')
-rw-r--r--test/-ext-/bug_reporter/test_bug_reporter.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/test/-ext-/bug_reporter/test_bug_reporter.rb b/test/-ext-/bug_reporter/test_bug_reporter.rb
index ac6d92bb67..759e295fb6 100644
--- a/test/-ext-/bug_reporter/test_bug_reporter.rb
+++ b/test/-ext-/bug_reporter/test_bug_reporter.rb
@@ -8,6 +8,7 @@ class TestBugReporter < Test::Unit::TestCase
description = RUBY_DESCRIPTION
description = description.sub(/\+JIT /, '') if defined?(RubyVM::JIT) && RubyVM::JIT.enabled?
+ description = description.sub(/\+YJIT /, '') if defined?(YJIT.enabled?) && YJIT.enabled?
expected_stderr = [
:*,
/\[BUG\]\sSegmentation\sfault.*\n/,