Author: hokein Date: Thu Dec 6 02:22:48 2018 New Revision: 348478 URL: http://llvm.org/viewvc/llvm-project?rev=348478&view=rev Log: [clangd] Update the test code
I forgot to update it in the last round of code review. Modified: clang-tools-extra/trunk/unittests/clangd/TUSchedulerTests.cpp Modified: clang-tools-extra/trunk/unittests/clangd/TUSchedulerTests.cpp URL: http://llvm.org/viewvc/llvm-project/clang-tools-extra/trunk/unittests/clangd/TUSchedulerTests.cpp?rev=348478&r1=348477&r2=348478&view=diff ============================================================================== --- clang-tools-extra/trunk/unittests/clangd/TUSchedulerTests.cpp (original) +++ clang-tools-extra/trunk/unittests/clangd/TUSchedulerTests.cpp Thu Dec 6 02:22:48 2018 @@ -716,11 +716,7 @@ TEST_F(TUSchedulerTests, NoTUStatusEmitt 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; _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits