summaryrefslogtreecommitdiffstats
path: root/lldb/unittests/Host/FileSpecTest.cpp
diff options
context:
space:
mode:
authorJim Ingham <jingham@apple.com>2016-11-04 01:47:59 +0000
committerJim Ingham <jingham@apple.com>2016-11-04 01:47:59 +0000
commited76d10038b778f2ba790f524e3c78f11908d746 (patch)
tree69801a12d98c1cad0e05853a3516c59b7640b76e /lldb/unittests/Host/FileSpecTest.cpp
parentada8544dfb44c0f94f7ee9a2b283061954e0fdc5 (diff)
downloadbcm5719-llvm-ed76d10038b778f2ba790f524e3c78f11908d746.tar.gz
bcm5719-llvm-ed76d10038b778f2ba790f524e3c78f11908d746.zip
Added a couple more odd dot patterns that we got out
of clang. llvm-svn: 285977
Diffstat (limited to 'lldb/unittests/Host/FileSpecTest.cpp')
-rw-r--r--lldb/unittests/Host/FileSpecTest.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/lldb/unittests/Host/FileSpecTest.cpp b/lldb/unittests/Host/FileSpecTest.cpp
index 6668da5ed10..843dcb8b185 100644
--- a/lldb/unittests/Host/FileSpecTest.cpp
+++ b/lldb/unittests/Host/FileSpecTest.cpp
@@ -200,6 +200,8 @@ TEST(FileSpecTest, EqualDotsPosixRoot) {
TEST(FileSpecTest, GetNormalizedPath) {
std::pair<const char *, const char *> posix_tests[] = {
+ {"/foo/.././bar", "/bar"},
+ {"/foo/./../bar", "/bar"},
{"/foo/../bar", "/bar"},
{"/foo/./bar", "/foo/bar"},
{"/foo/..", "/"},
OpenPOWER on IntegriCloud