aboutsummaryrefslogtreecommitdiffstats
path: root/test/-ext-
diff options
context:
space:
mode:
authorNobuyoshi Nakada <nobu@ruby-lang.org>2023-08-02 19:30:29 +0900
committerNobuyoshi Nakada <nobu@ruby-lang.org>2023-08-02 19:55:31 +0900
commit85ee4a65a22ebe6f3c65f0b10397bd6ebb976333 (patch)
tree4e8db40c10faa8e9fe310bd289cb0898ca3dc6af /test/-ext-
parentffe0f9eb6cfbc388a0da979ed173da94fae46c82 (diff)
downloadruby-85ee4a65a22ebe6f3c65f0b10397bd6ebb976333.tar.gz
Allow to override environment variables for debug
Diffstat (limited to 'test/-ext-')
-rw-r--r--test/-ext-/bug_reporter/test_bug_reporter.rb3
1 files changed, 1 insertions, 2 deletions
diff --git a/test/-ext-/bug_reporter/test_bug_reporter.rb b/test/-ext-/bug_reporter/test_bug_reporter.rb
index 6e44337d41..d4d0de7f46 100644
--- a/test/-ext-/bug_reporter/test_bug_reporter.rb
+++ b/test/-ext-/bug_reporter/test_bug_reporter.rb
@@ -9,8 +9,6 @@ class TestBugReporter < Test::Unit::TestCase
end
def test_bug_reporter_add
- omit if ENV['RUBY_ON_BUG']
-
description = RUBY_DESCRIPTION
description = description.sub(/\+RJIT /, '') unless JITSupport.rjit_force_enabled?
expected_stderr = [
@@ -27,6 +25,7 @@ class TestBugReporter < Test::Unit::TestCase
args = ["--disable-gems", "-r-test-/bug_reporter",
"-C", tmpdir]
args.push("--yjit") if yjit_enabled? # We want the printed description to match this process's RUBY_DESCRIPTION
+ args.unshift({"RUBY_ON_BUG" => nil})
stdin = "#{no_core}register_sample_bug_reporter(12345); Process.kill :SEGV, $$"
assert_in_out_err(args, stdin, [], expected_stderr, encoding: "ASCII-8BIT")
ensure