Fix FileSpecTest after LLVM changes to remove_dots (https://reviews.llvm.org/D46887)
authorGreg Clayton <gclayton@apple.com>
Wed, 16 May 2018 18:37:00 +0000 (18:37 +0000)
committerGreg Clayton <gclayton@apple.com>
Wed, 16 May 2018 18:37:00 +0000 (18:37 +0000)
llvm-svn: 332511

lldb/unittests/Utility/FileSpecTest.cpp

index 08c47df..d535ad7 100644 (file)
@@ -199,9 +199,9 @@ TEST(FileSpecTest, GetNormalizedPath) {
       {"/..", "/"},
       {"/.", "/"},
       {"..", ".."},
-      {".", ""},
+      {".", "."},
       {"../..", "../.."},
-      {"foo/..", ""},
+      {"foo/..", "."},
       {"foo/../bar", "bar"},
       {"../foo/..", ".."},
       {"./foo", "foo"},
@@ -230,11 +230,11 @@ TEST(FileSpecTest, GetNormalizedPath) {
       {R"(\..)", R"(\..)"},
       //      {R"(c:..)", R"(c:..)"},
       {R"(..)", R"(..)"},
-      {R"(.)", R"()"},
+      {R"(.)", R"(.)"},
       // TODO: fix llvm::sys::path::remove_dots() to return "c:\" below.
       {R"(c:..\..)", R"(c:\..\..)"},
       {R"(..\..)", R"(..\..)"},
-      {R"(foo\..)", R"()"},
+      {R"(foo\..)", R"(.)"},
       {R"(foo\..\bar)", R"(bar)"},
       {R"(..\foo\..)", R"(..)"},
       {R"(.\foo)", R"(foo)"},