llvm-project/lldb/unittests
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
..
Core Change `CoreTests` to LLDBCoreTests to avoid name clash. 2016-02-09 23:45:21 +00:00
Editline Fix a bunch of signedness warnings in unittests 2016-03-11 09:00:23 +00:00
Expression Fix build for go parser unittest. 2015-11-03 22:46:37 +00:00
Host FileSpec: make matching separator-agnostic again 2016-04-14 09:38:06 +00:00
Interpreter Fix linking of unit tests via CMake on Windows. 2015-03-18 16:56:24 +00:00
ScriptInterpreter Initialize the Python script interpreter lazily (i.e. not at debugger startup) 2016-04-12 18:23:18 +00:00
Symbol Add some unit tests for ClangASTContext. 2016-04-01 23:20:35 +00:00
SymbolFile Fix a bunch of signedness warnings in unittests 2016-03-11 09:00:23 +00:00
Utility Add a new task pool class to LLDB 2015-10-20 12:42:05 +00:00
CMakeLists.txt Add some unit tests for ClangASTContext. 2016-04-01 23:20:35 +00:00
gtest_common.h Fix linking of unit tests via CMake on Windows. 2015-03-18 16:56:24 +00:00