[clangd] Try to fix windows buildbot after r343576

http://lab.llvm.org:8011/builders/llvm-clang-lld-x86_64-scei-ps4-windows10pro-fast/builds/20347/steps/test/logs/stdio

llvm-svn: 343623
This commit is contained in:
Eric Liu 2018-10-02 20:00:32 +00:00
parent a659d779f8
commit 9a3af5a4f1
1 changed files with 3 additions and 2 deletions

View File

@ -1019,11 +1019,12 @@ TEST(ClangdTests, PreambleVFSStatCache) {
runAddDocument(Server, SourcePath, Code.code());
EXPECT_EQ(CountStats["foo.h"], 1u);
unsigned Before = CountStats["foo.h"];
EXPECT_GT(Before, 0u);
auto Completions = cantFail(runCodeComplete(Server, SourcePath, Code.point(),
clangd::CodeCompleteOptions()))
.Completions;
EXPECT_EQ(CountStats["foo.h"], 1u);
EXPECT_EQ(CountStats["foo.h"], Before);
EXPECT_THAT(Completions,
ElementsAre(Field(&CodeCompletion::Name, "TestSym")));
}