[clang-tools-extra] 511a7ee - [clangd] Fix tests after ed0e20d5e8c5d6c679d2c
Sam McCall via cfe-commits
cfe-commits at lists.llvm.org
Wed Jul 6 06:22:11 PDT 2022
Author: Sam McCall
Date: 2022-07-06T15:22:05+02:00
New Revision: 511a7eef937ebc1e25efc90bf41f12b52ad1dff3
URL: https://github.com/llvm/llvm-project/commit/511a7eef937ebc1e25efc90bf41f12b52ad1dff3
DIFF: https://github.com/llvm/llvm-project/commit/511a7eef937ebc1e25efc90bf41f12b52ad1dff3.diff
LOG: [clangd] Fix tests after ed0e20d5e8c5d6c679d2c
Added:
Modified:
clang-tools-extra/clangd/unittests/TUSchedulerTests.cpp
Removed:
################################################################################
diff --git a/clang-tools-extra/clangd/unittests/TUSchedulerTests.cpp b/clang-tools-extra/clangd/unittests/TUSchedulerTests.cpp
index 39ab1638efa8..995ad992d51b 100644
--- a/clang-tools-extra/clangd/unittests/TUSchedulerTests.cpp
+++ b/clang-tools-extra/clangd/unittests/TUSchedulerTests.cpp
@@ -1413,7 +1413,7 @@ TEST_F(TUSchedulerTests, PreambleThrottle) {
Callback SatisfyNext;
{
std::lock_guard<std::mutex> Lock(Mu);
- if (ID > 0)
+ if (ID > 0 && Acquires.size() == NumRequests)
SatisfyNext = std::move(Callbacks[ID - 1]);
}
if (SatisfyNext)
More information about the cfe-commits
mailing list