[Lldb-commits] [lldb] r292106 - Fix windows unit tests
Pavel Labath via lldb-commits
lldb-commits at lists.llvm.org
Mon Jan 16 04:15:43 PST 2017
Author: labath
Date: Mon Jan 16 06:15:42 2017
New Revision: 292106
URL: http://llvm.org/viewvc/llvm-project?rev=292106&view=rev
Log:
Fix windows unit tests
The unit test I added in the previous commit discovered a bug in
PrependPathComponent on windows -- it was calling SetFile with the host native
path syntax, whereas it should be explicitly specifying the path syntax (as
AppendPathComponent does). This fixes it.
Modified:
lldb/trunk/source/Host/common/FileSpec.cpp
Modified: lldb/trunk/source/Host/common/FileSpec.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Host/common/FileSpec.cpp?rev=292106&r1=292105&r2=292106&view=diff
==============================================================================
--- lldb/trunk/source/Host/common/FileSpec.cpp (original)
+++ lldb/trunk/source/Host/common/FileSpec.cpp Mon Jan 16 06:15:42 2017
@@ -1277,7 +1277,7 @@ void FileSpec::PrependPathComponent(llvm
std::string result =
join_path_components(m_syntax, {component, m_directory.GetStringRef(),
m_filename.GetStringRef()});
- SetFile(result, resolve);
+ SetFile(result, resolve, m_syntax);
}
void FileSpec::PrependPathComponent(const FileSpec &new_path) {
More information about the lldb-commits
mailing list