Changeset View
Changeset View
Standalone View
Standalone View
plugins/cmake/tests/test_cmakemanager.cpp
Show First 20 Lines • Show All 348 Lines • ▼ Show 20 Line(s) | 337 | { | |||
---|---|---|---|---|---|
349 | 349 | | |||
350 | QSignalSpy spy(job, &KJob::finished); | 350 | QSignalSpy spy(job, &KJob::finished); | ||
351 | job->start(); | 351 | job->start(); | ||
352 | QVERIFY(spy.wait()); | 352 | QVERIFY(spy.wait()); | ||
353 | QCOMPARE(spy.count(), 1); | 353 | QCOMPARE(spy.count(), 1); | ||
354 | 354 | | |||
355 | QCOMPARE(projectItem, project->projectItem()); | 355 | QCOMPARE(projectItem, project->projectItem()); | ||
356 | QCOMPARE(targets, projectItem->targetList()); | 356 | QCOMPARE(targets, projectItem->targetList()); | ||
357 | | ||||
358 | // Let signals from queued connections arrive before we delete things | ||||
359 | QTest::qWait(1); | ||||
357 | } | 360 | } | ||
358 | 361 | | |||
359 | void TestCMakeManager::testFaultyTarget() | 362 | void TestCMakeManager::testFaultyTarget() | ||
360 | { | 363 | { | ||
361 | loadProject(QStringLiteral("faulty_target")); | 364 | loadProject(QStringLiteral("faulty_target")); | ||
362 | } | 365 | } | ||
363 | 366 | | |||
364 | void TestCMakeManager::testParenthesesInTestArguments() | 367 | void TestCMakeManager::testParenthesesInTestArguments() | ||
Show All 29 Lines |