Commit 9f8120a1 authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Port forever

parent 61bd59e2
Pipeline #81856 failed with stage
in 25 minutes and 36 seconds
......@@ -514,7 +514,7 @@ QByteArray Maildir::readEntryHeadersFromFile(const QString &file) const
return result;
}
f.map(0, qMin((qint64)8000, f.size()));
forever {
for (;;) {
QByteArray line = f.readLine();
if (line.isEmpty() || line.startsWith('\n')) {
break;
......
......@@ -230,7 +230,7 @@ void Pop3Test::cleanupMaildir(const Akonadi::Item::List &items)
QElapsedTimer time;
time.start();
int lastCount = -1;
forever {
for (;;) {
qApp->processEvents();
QTest::qWait(500);
QDir maildir(mMaildirPath);
......@@ -259,7 +259,7 @@ void Pop3Test::checkMailsInMaildir(const QList<QByteArray> &mails)
QElapsedTimer time;
time.start();
int lastCount = -1;
forever {
for (;;) {
qApp->processEvents();
QTest::qWait(500);
QDir maildir(mMaildirPath);
......@@ -330,7 +330,7 @@ void Pop3Test::syncAndWaitForFinish()
QElapsedTimer time;
time.start();
int lastProgress = -1;
forever {
for (;;) {
qApp->processEvents();
// Finish correctly when the connection got closed
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment