wait for sycoca to finish
This commit is contained in:
parent
2b2764cc44
commit
200d71c943
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user