Commit 0f6d64d2 authored by Volker Krause's avatar Volker Krause
Browse files

Fix line break handling in test data on Windows

parent b266e341
Pipeline #161648 passed with stages
in 2 minutes and 23 seconds
......@@ -81,7 +81,7 @@ private Q_SLOTS:
QFETCH(QString, inputFile);
QFile inFile(inputFile);
QVERIFY(inFile.open(QFile::ReadOnly));
QVERIFY(inFile.open(QFile::ReadOnly | QFile::Text));
const auto expr = inFile.readLine();
OpeningHours oh(expr);
......@@ -107,7 +107,7 @@ private Q_SLOTS:
const auto refData = inFile.readAll();
if (refData != b) {
QFile failFile(inputFile + QLatin1String(".fail"));
QVERIFY(failFile.open(QFile::WriteOnly));
QVERIFY(failFile.open(QFile::WriteOnly | QFile::Text));
failFile.write(b);
failFile.close();
......
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