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:
Chaoren Lin 2015-06-01 18:04:10 +00:00
parent f4d5a8ec9e
commit b79863c2cc
1 changed files with 2 additions and 2 deletions

View File

@ -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;
}