Run crash report test processes without RUBY_ON_BUG
These processes are to be crashed, avoid running debugger.
This commit is contained in:
parent
5eef125afe
commit
f0d8278607
@ -847,7 +847,7 @@ class TestRubyOptions < Test::Unit::TestCase
|
|||||||
else
|
else
|
||||||
cmd = ['-e', SEGVTest::KILL_SELF]
|
cmd = ['-e', SEGVTest::KILL_SELF]
|
||||||
end
|
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)
|
reports = Dir.glob("*.log", File::FNM_DOTMATCH, base: dir)
|
||||||
assert_equal(1, reports.size)
|
assert_equal(1, reports.size)
|
||||||
assert_pattern_list(list, File.read(File.join(dir, reports.first)))
|
assert_pattern_list(list, File.read(File.join(dir, reports.first)))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user