llvm-project/lldb/unittests/Host
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
..
CMakeLists.txt Remove TimeValue usage from FileSpec.h 2016-11-01 16:11:14 +00:00
FileSpecTest.cpp FileSpec: Fix PrependPathComponent("/") 2017-01-16 10:07:02 +00:00
FileSystemTest.cpp Remove TimeValue usage from FileSpec.h 2016-11-01 16:11:14 +00:00
SocketAddressTest.cpp *** This commit represents a complete reformatting of the LLDB source code 2016-09-06 20:57:50 +00:00
SocketTest.cpp Fix Clang-tidy readability-redundant-string-cstr warnings 2016-11-02 20:34:10 +00:00
SymbolsTest.cpp Fix unittest compilation on windows 2016-09-07 08:46:50 +00:00