projects
/
platform
/
upstream
/
llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fee1040
)
[clangd] Update the test code
author
Haojian Wu
<hokein@google.com>
Thu, 6 Dec 2018 10:22:48 +0000
(10:22 +0000)
committer
Haojian Wu
<hokein@google.com>
Thu, 6 Dec 2018 10:22:48 +0000
(10:22 +0000)
I forgot to update it in the last round of code review.
llvm-svn: 348478
clang-tools-extra/unittests/clangd/TUSchedulerTests.cpp
patch
|
blob
|
history
diff --git
a/clang-tools-extra/unittests/clangd/TUSchedulerTests.cpp
b/clang-tools-extra/unittests/clangd/TUSchedulerTests.cpp
index
f7ddd36
..
4b84284
100644
(file)
--- a/
clang-tools-extra/unittests/clangd/TUSchedulerTests.cpp
+++ b/
clang-tools-extra/unittests/clangd/TUSchedulerTests.cpp
@@
-716,11
+716,7
@@
TEST_F(TUSchedulerTests, NoTUStatusEmittedForRemovedFile) {
std::vector<Diag> Diagnostics) override {}
void onFileUpdated(PathRef File, const TUStatus &Status) override {
- // Queued is emitted by the main thread, we don't block it.
- if (Status.Action.S == TUAction::Queued)
- return;
// Block the worker thread until the document is removed.
- ASSERT_TRUE(Status.Action.S == TUAction::RunningAction);
Removed.wait();
}
Notification Removed;