Fix tst_QNetworkReply::qtbug45581WrongReplyStatusCode() on Windows

The file is read using CRLF line convention on Windows.

Task-number: QTBUG-24226
Change-Id: Ie08fa603e29c80a42de4bfbfd1f4237f53c22b98
Reviewed-by: Timur Pocheptsov <timur.pocheptsov@theqtcompany.com>
bb10
Friedemann Kleint 2016-06-08 16:19:04 +02:00
parent df9aee2150
commit 2714d94ff4
1 changed files with 5 additions and 1 deletions

View File

@ -7295,7 +7295,11 @@ void tst_QNetworkReply::qtbug45581WrongReplyStatusCode()
const QByteArray expectedContent =
"<root attr=\"value\" attr2=\"value2\">"
"<person /><fruit /></root>\n";
"<person /><fruit /></root>"
#ifdef Q_OS_WIN
"\r"
#endif
"\n";
QCOMPARE(reply->readAll(), expectedContent);