Differential D8904 Diff 22615 kdevplatform/language/backgroundparser/tests/test_backgroundparser.cpp
Changeset View
Changeset View
Standalone View
Standalone View
kdevplatform/language/backgroundparser/tests/test_backgroundparser.cpp
Show First 20 Lines • Show All 128 Lines • ▼ Show 20 Line(s) | 128 | if (job.m_url == url) { | |||
---|---|---|---|---|---|
129 | return job; | 129 | return job; | ||
130 | } | 130 | } | ||
131 | } | 131 | } | ||
132 | return JobPrototype(); | 132 | return JobPrototype(); | ||
133 | } | 133 | } | ||
134 | 134 | | |||
135 | void JobPlan::updateReady(const IndexedString& url, const ReferencedTopDUContext& /*context*/) | 135 | void JobPlan::updateReady(const IndexedString& url, const ReferencedTopDUContext& /*context*/) | ||
136 | { | 136 | { | ||
137 | if (!ICore::self() || ICore::self()->shuttingDown()) { | ||||
138 | // core was shutdown before we get to handle the delayed signal, cf. testShutdownWithRunningJobs | ||||
139 | return; | ||||
140 | } | ||||
141 | | ||||
137 | qDebug() << "update ready on " << url.toUrl(); | 142 | qDebug() << "update ready on " << url.toUrl(); | ||
138 | 143 | | |||
139 | const JobPrototype job = jobForUrl(url); | 144 | const JobPrototype job = jobForUrl(url); | ||
140 | QVERIFY(job.m_url.toUrl().isValid()); | 145 | QVERIFY(job.m_url.toUrl().isValid()); | ||
141 | 146 | | |||
142 | if (job.m_flags & ParseJob::RequiresSequentialProcessing) { | 147 | if (job.m_flags & ParseJob::RequiresSequentialProcessing) { | ||
143 | // ensure that all jobs that respect sequential processing | 148 | // ensure that all jobs that respect sequential processing | ||
144 | // with lower priority have been run | 149 | // with lower priority have been run | ||
▲ Show 20 Lines • Show All 243 Lines • Show Last 20 Lines |