[Lldb-commits] [lldb] r332511 - Fix FileSpecTest after LLVM changes to remove_dots (https://reviews.llvm.org/D46887)

Greg Clayton via lldb-commits lldb-commits at lists.llvm.org
Wed May 16 11:37:00 PDT 2018


Author: gclayton
Date: Wed May 16 11:37:00 2018
New Revision: 332511

URL: http://llvm.org/viewvc/llvm-project?rev=332511&view=rev
Log:
Fix FileSpecTest after LLVM changes to remove_dots (https://reviews.llvm.org/D46887)

Modified:
    lldb/trunk/unittests/Utility/FileSpecTest.cpp

Modified: lldb/trunk/unittests/Utility/FileSpecTest.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/unittests/Utility/FileSpecTest.cpp?rev=332511&r1=332510&r2=332511&view=diff
==============================================================================
--- lldb/trunk/unittests/Utility/FileSpecTest.cpp (original)
+++ lldb/trunk/unittests/Utility/FileSpecTest.cpp Wed May 16 11:37:00 2018
@@ -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)"},




More information about the lldb-commits mailing list