Skip to content

Commit

Permalink
Run crash report test processes without RUBY_ON_BUG
Browse files Browse the repository at this point in the history
These processes are to be crashed, avoid running debugger.
  • Loading branch information
nobu committed Sep 26, 2023
1 parent 5eef125 commit f0d8278
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/ruby/test_rubyoptions.rb
Expand Up @@ -847,7 +847,7 @@ def assert_crash_report(path, cmd = nil)
else
cmd = ['-e', SEGVTest::KILL_SELF]
end
status = assert_segv([{"RUBY_CRASH_REPORT"=>path}, *cmd], list: [], chdir: dir)
status = assert_segv([{"RUBY_CRASH_REPORT"=>path, "RUBY_ON_BUG"=>nil}, *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)))
Expand Down

0 comments on commit f0d8278

Please sign in to comment.