llvm-project/lldb/unittests
Pavel Labath 59d725cabf FileSpec: Fix PrependPathComponent("/")
Summary:
PrependPathComponent was unconditionally inserting path separators between the
path components. This is not correct if the prepended path is "/", which caused
problems down the line. Fix the function to use the same algorithm as
AppendPathComponent and add a test. This fixes one part of llvm.org/pr31611.

Reviewers: clayborg, zturner

Subscribers: lldb-commits

Differential Revision: https://reviews.llvm.org/D28677

llvm-svn: 292100
2017-01-16 10:07:02 +00:00
..
Breakpoint Convert many functions to use StringRefs. 2016-09-17 02:00:02 +00:00
Core Add format_provider for the Error class 2017-01-12 11:13:24 +00:00
Editline *** This commit represents a complete reformatting of the LLDB source code 2016-09-06 20:57:50 +00:00
Expression *** This commit represents a complete reformatting of the LLDB source code 2016-09-06 20:57:50 +00:00
Host FileSpec: Fix PrependPathComponent("/") 2017-01-16 10:07:02 +00:00
Interpreter Refactor the Args class. 2016-10-03 22:51:09 +00:00
Language *** This commit represents a complete reformatting of the LLDB source code 2016-09-06 20:57:50 +00:00
Platform Fix compiler warnings in PlatformDarwinTest.cpp 2016-10-08 04:03:15 +00:00
Process Fix jModulesInfo handling for cross-path syntax debugging 2017-01-05 13:18:46 +00:00
ScriptInterpreter Fix some unit test compilation failures. 2016-11-16 21:45:11 +00:00
Symbol Improve Type::GetTypeScopeAndBasenameHelper and add unit tests 2017-01-10 11:13:59 +00:00
SymbolFile [unittests] Split DWARF tests out of PDB, fix standalone build 2017-01-02 18:20:33 +00:00
UnwindAssembly [lldb] Don't build unit tests for unsupported targets 2016-11-08 06:49:59 +00:00
Utility Introduce chrono to the Communication class 2016-11-25 11:58:44 +00:00
CMakeLists.txt [CMake] Don't add gtest if it is already there 2016-12-05 19:40:34 +00:00
gtest_common.h *** This commit represents a complete reformatting of the LLDB source code 2016-09-06 20:57:50 +00:00