Fix TestPaths.
Reviewers: vharron, clayborg Reviewed By: clayborg Subscribers: lldb-commits Differential Revision: http://reviews.llvm.org/D10164 llvm-svn: 238767
This commit is contained in:
parent
f4d5a8ec9e
commit
b79863c2cc
|
@ -334,7 +334,7 @@ HostInfoBase::ComputeProcessTempFileDirectory(FileSpec &file_spec)
|
|||
// Make an atexit handler to clean up the process specify LLDB temp dir
|
||||
// and all of its contents.
|
||||
::atexit(CleanupProcessSpecificLLDBTempDir);
|
||||
file_spec = temp_file_spec;
|
||||
file_spec.GetDirectory().SetCString(temp_file_spec.GetCString());
|
||||
return true;
|
||||
}
|
||||
|
||||
|
@ -370,7 +370,7 @@ HostInfoBase::ComputeGlobalTempFileDirectory(FileSpec &file_spec)
|
|||
if (!FileSystem::MakeDirectory(temp_file_spec, eFilePermissionsDirectoryDefault).Success())
|
||||
return false;
|
||||
|
||||
file_spec = temp_file_spec;
|
||||
file_spec.GetDirectory().SetCString(temp_file_spec.GetCString());
|
||||
return true;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue