AutoTest: Adapt to changed handling of CppTools

b276de576f fixed an issue with
mixing handling/not handling of carriage return characters.
The AutoTest plugin uses similar functionality and relies on
the code model (and its snapshot / working copy).

Adapt the respective part here as well.

Task-number: QTCREATORBUG-19897
Change-Id: If9183bfa020a1c4c6efdc5dee404c1a1e0ce41a6
Reviewed-by: Ivan Donchevskii <ivan.donchevskii@qt.io>
This commit is contained in:
Christian Stenger
2018-02-23 14:13:07 +01:00
parent b276de576f
commit 39dd8ebc6e

View File

@@ -68,6 +68,7 @@ QByteArray CppParser::getFileContent(const QString &filePath)
qDebug() << "Failed to read file" << filePath << ":" << error;
}
}
fileContent.replace("\r\n", "\n");
return fileContent;
}