forked from OSchip/llvm-project
Fix TestVSCode_runInTerminal
It failed in https://lab.llvm.org/buildbot/#/builders/68/builds/10912 And it was caused due to https://reviews.llvm.org/rG64f47c1e58a1
This commit is contained in:
parent
c9a0754b44
commit
c4a83c4e69
|
@ -3149,9 +3149,6 @@ int main(int argc, char *argv[]) {
|
|||
llvm::InitLLVM IL(argc, argv, /*InstallPipeSignalExitHandler=*/false);
|
||||
llvm::PrettyStackTraceProgram X(argc, argv);
|
||||
|
||||
// stdout/stderr redirection to the IDE's console
|
||||
int new_stdout_fd = SetupStdoutStderrRedirection();
|
||||
|
||||
llvm::SmallString<256> program_path(argv[0]);
|
||||
llvm::sys::fs::make_absolute(program_path);
|
||||
g_vsc.debug_adaptor_path = program_path.str().str();
|
||||
|
@ -3178,6 +3175,9 @@ int main(int argc, char *argv[]) {
|
|||
}
|
||||
}
|
||||
|
||||
// stdout/stderr redirection to the IDE's console
|
||||
int new_stdout_fd = SetupStdoutStderrRedirection();
|
||||
|
||||
// Initialize LLDB first before we do anything.
|
||||
lldb::SBDebugger::Initialize();
|
||||
|
||||
|
|
Loading…
Reference in New Issue