[Lldb-commits] [PATCH] D48746: Fix path completion test case added in rL335905 on Windows
Raphael Isemann via Phabricator via lldb-commits
lldb-commits at lists.llvm.org
Thu Jun 28 14:53:56 PDT 2018
teemperor updated this revision to Diff 153408.
teemperor added a comment.
- Fixed an syntax error. Should work now.
https://reviews.llvm.org/D48746
Files:
unittests/Interpreter/TestCompletion.cpp
Index: unittests/Interpreter/TestCompletion.cpp
===================================================================
--- unittests/Interpreter/TestCompletion.cpp
+++ unittests/Interpreter/TestCompletion.cpp
@@ -286,14 +286,12 @@
Count = CommandCompletions::DiskDirectories("~/foo/", Results, Resolver);
ASSERT_EQ(1u, Count);
ASSERT_EQ(Count, Results.GetSize());
- EXPECT_TRUE(ContainsExactString(Twine("~/foo") + path::get_separator() +
- "nested" + path::get_separator(),
+ EXPECT_TRUE(ContainsExactString(Twine("~/foo/nested") + path::get_separator(),
Results));
Count = CommandCompletions::DiskDirectories("~/foo/nes", Results, Resolver);
ASSERT_EQ(1u, Count);
ASSERT_EQ(Count, Results.GetSize());
- EXPECT_TRUE(ContainsExactString(Twine("~/foo") + path::get_separator() +
- "nested" + path::get_separator(),
+ EXPECT_TRUE(ContainsExactString(Twine("~/foo/nested") + path::get_separator(),
Results));
// With ~username syntax it should return one match if there is an exact
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D48746.153408.patch
Type: text/x-patch
Size: 1147 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/lldb-commits/attachments/20180628/7dcd1607/attachment.bin>
More information about the lldb-commits
mailing list