mirror of
https://github.com/ruby/ruby.git
synced 2025-08-15 13:39:04 +02:00
Run crash report test processes without RUBY_ON_BUG
These processes are to be crashed, avoid running debugger.
This commit is contained in:
parent
8233572d45
commit
6d7730ab98
1 changed files with 3 additions and 2 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue