mirror of
https://github.com/RPCSX/llvm.git
synced 2024-11-27 21:50:40 +00:00
Bugpoint was not correctly capturing stderr! This caused it to "find" bugs
that didn't exist, missing the ones that do :( git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@12978 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
cd01ae5c70
commit
bf3d2e2683
@ -142,7 +142,10 @@ int llvm::RunProgramWithTimeout(const std::string &ProgramPath,
|
||||
case 0: // Child
|
||||
RedirectFD(StdInFile, 0); // Redirect file descriptors...
|
||||
RedirectFD(StdOutFile, 1);
|
||||
RedirectFD(StdErrFile, 2);
|
||||
if (StdOutFile != StdErrFile)
|
||||
RedirectFD(StdErrFile, 2);
|
||||
else
|
||||
dup2(1, 2);
|
||||
|
||||
execv(ProgramPath.c_str(), (char *const *)Args);
|
||||
std::cerr << "Error executing program: '" << ProgramPath;
|
||||
|
Loading…
Reference in New Issue
Block a user