llvm-project/lldb/unittests/Host
Pavel Labath a212c58db0 FileSpec: make matching separator-agnostic again
Summary:
In D18689, I removed the call to Normalize() in FileSpec::SetFile, because it no longer seemed
needed, and it resolved a quirk in the FileSpec API (spec.GetCString() returnes a path with
backslashes, but spec.GetDirectory().GetCString() has forward slashes). This turned out to be a
problem because we would consider paths with different separators as different (which led to
unresolved breakpoints for instance).

Here, I am putting back in the call to Normalize() and adding a unittest for FileSpec::Equal. I
am commenting out the GetDirectory unittests until we figure out the what is the expected
behaviour here.

Reviewers: zturner

Subscribers: lldb-commits

Differential Revision: http://reviews.llvm.org/D19060

llvm-svn: 266286
2016-04-14 09:38:06 +00:00
..
CMakeLists.txt Fix a couple of cornercases in FileSpec + tests 2016-03-11 08:44:44 +00:00
FileSpecTest.cpp FileSpec: make matching separator-agnostic again 2016-04-14 09:38:06 +00:00
SocketAddressTest.cpp Fix SocketAddressTest (again) 2016-03-30 09:43:04 +00:00
SocketTest.cpp Fix an off-by-one in SocketTest::DecodeHostAndPort 2016-02-03 11:12:23 +00:00
SymbolsTest.cpp Fix segmentation fault in lldb_private::Symbols::LocateExecutableSymbolFile() 2015-10-06 10:17:34 +00:00