mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-11-26 11:31:17 +00:00
Abort rather than exiting "normally" if an autoupdate step crashes. (#4483)
This avoids producing an LSan leak report for the objects that got leaked by the crash, which would otherwise scroll all the useful information about the crash off the terminal.
This commit is contained in:
1 parent
2841e9a67e
commit
d1733c6aa7
1 file changed
+3
-1
@@ -1015,7 +1015,9 @@ static auto RunAutoupdate(llvm::StringRef exe_path,
|
||||
|
||||
pool.wait();
|
||||
if (crashed) {
|
||||
return EXIT_FAILURE;
|
||||
// Abort rather than returning so that we don't get a LeakSanitizer report.
|
||||
// We expect to have leaked memory if one or more of our tests crashed.
|
||||
std::abort();
|
||||
}
|
||||
llvm::errs() << "\nDone!\n";
|
||||
return EXIT_SUCCESS;
|
||||
|
||||
Reference in new issue
Block a user