wait for sycoca to finish

This commit is contained in:
Marco Martin 2014-07-14 18:23:21 +02:00
parent 2b2764cc44
commit 200d71c943

View File

@ -77,10 +77,8 @@ static void runKBuildSycoca()
proc.setProcessChannelMode(QProcess::MergedChannels); // silence kbuildsycoca output
proc.start(kbuildsycoca, args);
//qDebug() << "waiting for signal";
//QSignalSpy spy(KSycoca::self(), SIGNAL(databaseChanged(QStringList)));
//QVERIFY(spy.wait(10000));
//qDebug() << "got signal";
QSignalSpy spy(KSycoca::self(), SIGNAL(databaseChanged(QStringList)));
QVERIFY(spy.wait(10000));
proc.waitForFinished();
QCOMPARE(proc.exitStatus(), QProcess::NormalExit);