mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-11-23 16:19:52 +00:00
If the program returns a non-zero exit value, don't leave files laying
around git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@12603 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -265,8 +265,11 @@ bool BugDriver::diffProgram(const std::string &BytecodeFile,
|
|||||||
&ProgramExitedNonzero);
|
&ProgramExitedNonzero);
|
||||||
|
|
||||||
// If we're checking the program exit code, assume anything nonzero is bad.
|
// If we're checking the program exit code, assume anything nonzero is bad.
|
||||||
if (CheckProgramExitCode && ProgramExitedNonzero)
|
if (CheckProgramExitCode && ProgramExitedNonzero) {
|
||||||
|
removeFile(Output);
|
||||||
|
if (RemoveBytecode) removeFile(BytecodeFile);
|
||||||
return true;
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
std::string Error;
|
std::string Error;
|
||||||
bool FilesDifferent = false;
|
bool FilesDifferent = false;
|
||||||
|
|||||||
Reference in New Issue
Block a user