Added a couple more odd dot patterns that we got out
authorJim Ingham <jingham@apple.com>
Fri, 4 Nov 2016 01:47:59 +0000 (01:47 +0000)
committerJim Ingham <jingham@apple.com>
Fri, 4 Nov 2016 01:47:59 +0000 (01:47 +0000)
of clang.

llvm-svn: 285977

lldb/unittests/Host/FileSpecTest.cpp

index 6668da5ed10951a5620871e4d282a0c00c5bc522..843dcb8b1859c94eb39cc5449b551f0b06f60c07 100644 (file)
@@ -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/..", "/"},