[clang-tools-extra] r343623 - [clangd] Try to fix windows buildbot after r343576
Eric Liu via cfe-commits
cfe-commits at lists.llvm.org
Tue Oct 2 13:00:32 PDT 2018
Author: ioeric
Date: Tue Oct 2 13:00:32 2018
New Revision: 343623
URL: http://llvm.org/viewvc/llvm-project?rev=343623&view=rev
Log:
[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
Modified:
clang-tools-extra/trunk/unittests/clangd/ClangdTests.cpp
Modified: clang-tools-extra/trunk/unittests/clangd/ClangdTests.cpp
URL: http://llvm.org/viewvc/llvm-project/clang-tools-extra/trunk/unittests/clangd/ClangdTests.cpp?rev=343623&r1=343622&r2=343623&view=diff
==============================================================================
--- clang-tools-extra/trunk/unittests/clangd/ClangdTests.cpp (original)
+++ clang-tools-extra/trunk/unittests/clangd/ClangdTests.cpp Tue Oct 2 13:00:32 2018
@@ -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")));
}
More information about the cfe-commits
mailing list