From: Greg Clayton Date: Wed, 16 May 2018 18:37:00 +0000 (+0000) Subject: Fix FileSpecTest after LLVM changes to remove_dots (https://reviews.llvm.org/D46887) X-Git-Tag: llvmorg-7.0.0-rc1~5841 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=4de94930c3ca2ebc4a680ac361cd07217714525d;p=platform%2Fupstream%2Fllvm.git Fix FileSpecTest after LLVM changes to remove_dots (https://reviews.llvm.org/D46887) llvm-svn: 332511 --- diff --git a/lldb/unittests/Utility/FileSpecTest.cpp b/lldb/unittests/Utility/FileSpecTest.cpp index 08c47df..d535ad7 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)"},