Commit 03adaa15 authored by Volker Krause's avatar Volker Krause
Browse files

Fix unit test failure on Windows due to line break differences

parent a2382291
Pipeline #169403 passed with stage
in 5 minutes and 21 seconds
......@@ -595,11 +595,7 @@ void MessageTest::testReturnSameMail()
{
KMime::Message::Ptr msg = readAndParseMail(QStringLiteral("dontchangemail.mbox"));
QFile file(QLatin1String(TEST_DATA_DIR) + QLatin1String("/mails/dontchangemail.mbox"));
const bool ok = file.open(QIODevice::ReadOnly);
if (!ok) {
qWarning() << file.fileName() << "not found";
}
Q_ASSERT(ok);
QVERIFY(file.open(QIODevice::ReadOnly | QIODevice::Text));
QByteArray fileContent = file.readAll();
QCOMPARE(msg->encodedContent(), fileContent);
QCOMPARE(msg->decodedText(), QLatin1String(""));
......
Supports Markdown
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