summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNobuyoshi Nakada <nobu@ruby-lang.org>2023-09-26 17:25:08 +0900
committerNobuyoshi Nakada <nobu@ruby-lang.org>2023-09-26 17:25:08 +0900
commit6d7730ab98a0cb8708ff7f1ff163458cc3e1e0cd (patch)
treeecc3c29c649206da7f3e77de4f765868fd94b13d
parent8233572d45a23193d02a1f1f6bd09e997b0ccaa0 (diff)
Run crash report test processes without `RUBY_ON_BUG`
These processes are to be crashed, avoid running debugger.
-rw-r--r--test/ruby/test_rubyoptions.rb5
1 files changed, 3 insertions, 2 deletions
diff --git a/test/ruby/test_rubyoptions.rb b/test/ruby/test_rubyoptions.rb
index 41ff0ecba9..4cc0b707d4 100644
--- a/test/ruby/test_rubyoptions.rb
+++ b/test/ruby/test_rubyoptions.rb
@@ -847,7 +847,7 @@ class TestRubyOptions < Test::Unit::TestCase
else
cmd = ['-e', SEGVTest::KILL_SELF]
end
- status = assert_segv([{"RUBY_CRASH_REPORT"=>path, "RUBY_ON_BUG"=>nil}, *cmd], list: [], chdir: dir)
+ status = assert_segv([{"RUBY_CRASH_REPORT"=>path}, *cmd], list: [], chdir: dir)
reports = Dir.glob("*.log", File::FNM_DOTMATCH, base: dir)
assert_equal(1, reports.size)
assert_pattern_list(list, File.read(File.join(dir, reports.first)))
@@ -887,7 +887,8 @@ class TestRubyOptions < Test::Unit::TestCase
else
omit "/bin/echo not found"
end
- assert_in_out_err([{"RUBY_CRASH_REPORT"=>"| #{echo} %e:%f:%p"}], SEGVTest::KILL_SELF,
+ env = {"RUBY_CRASH_REPORT"=>"| #{echo} %e:%f:%p", "RUBY_ON_BUG"=>nil}
+ assert_in_out_err([env], SEGVTest::KILL_SELF,
encoding: "ASCII-8BIT",
**SEGVTest::ExecOptions) do |stdout, stderr, status|
assert_empty(stderr)