summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGreg Clayton <gclayton@apple.com>2018-05-16 23:32:45 +0000
committerGreg Clayton <gclayton@apple.com>2018-05-16 23:32:45 +0000
commita8da1f8ee4293ea6b4711ed33ca192bc6ec796f4 (patch)
tree6e249589a28e6b183cb799a593452ed0d725ad9c
parentf81f3a838a1de436e103a422808f575d803d8ace (diff)
downloadbcm5719-llvm-a8da1f8ee4293ea6b4711ed33ca192bc6ec796f4.tar.gz
bcm5719-llvm-a8da1f8ee4293ea6b4711ed33ca192bc6ec796f4.zip
Revert 332511 after reverting llvm revision 332508.
llvm-svn: 332556
-rw-r--r--lldb/unittests/Utility/FileSpecTest.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/lldb/unittests/Utility/FileSpecTest.cpp b/lldb/unittests/Utility/FileSpecTest.cpp
index d535ad713ae..08c47df4e5c 100644
--- a/lldb/unittests/Utility/FileSpecTest.cpp
+++ b/lldb/unittests/Utility/FileSpecTest.cpp
@@ -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)"},
OpenPOWER on IntegriCloud