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.setProcessChannelMode(QProcess::MergedChannels); // silence kbuildsycoca output
proc.start(kbuildsycoca, args); proc.start(kbuildsycoca, args);
//qDebug() << "waiting for signal"; QSignalSpy spy(KSycoca::self(), SIGNAL(databaseChanged(QStringList)));
//QSignalSpy spy(KSycoca::self(), SIGNAL(databaseChanged(QStringList))); QVERIFY(spy.wait(10000));
//QVERIFY(spy.wait(10000));
//qDebug() << "got signal";
proc.waitForFinished(); proc.waitForFinished();
QCOMPARE(proc.exitStatus(), QProcess::NormalExit); QCOMPARE(proc.exitStatus(), QProcess::NormalExit);