Commit 0f047cda authored by Denis Steckelmacher's avatar Denis Steckelmacher

Use BackgroundParser::isIdle in filetest when waiting for all the parse jobs to be finished

parent 6f1ba131
......@@ -49,7 +49,7 @@ ReferencedTopDUContext DeclarationBuilder::build(const IndexedString& url,
Q_ASSERT(m_session->url() == url);
// The declaration builder needs to run twice, so it can resolve uses of e.g. functions
// which are called before they are defined (which is easily possible, due to python's dynamic nature).
// which are called before they are defined (which is easily possible, due to JS's dynamic nature).
if (!m_prebuilding) {
kDebug() << "building, but running pre-builder first";
DeclarationBuilder* prebuilder = new DeclarationBuilder(m_session);
......
......@@ -74,7 +74,7 @@ void TestFiles::testFiles()
ReferencedTopDUContext top =
DUChain::self()->waitForUpdate(indexedFileName, KDevelop::TopDUContext::AllDeclarationsContextsAndUses);
while (ICore::self()->languageController()->backgroundParser()->queuedCount() != 0) {
while (!ICore::self()->languageController()->backgroundParser()->isIdle()) {
QTest::qWait(500);
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment