summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGreg Clayton <gclayton@apple.com>2018-05-16 18:37:00 +0000
committerGreg Clayton <gclayton@apple.com>2018-05-16 18:37:00 +0000
commit4de94930c3ca2ebc4a680ac361cd07217714525d (patch)
treec4659b21c70a0eff7f0f338ee8c2a830d55e132a
parentd5d77dcb46fdf36da7d663768d1cec11e1ad8076 (diff)
downloadbcm5719-llvm-4de94930c3ca2ebc4a680ac361cd07217714525d.tar.gz
bcm5719-llvm-4de94930c3ca2ebc4a680ac361cd07217714525d.zip
Fix FileSpecTest after LLVM changes to remove_dots (https://reviews.llvm.org/D46887)
llvm-svn: 332511
-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 08c47df4e5c..d535ad713ae 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