AutoTest: Fix pass/fail parsing on Windows

Chop \r

Change-Id: Ibd1ce9025a681aefcdce0c01a842903fda8a8e30
Reviewed-by: Christian Stenger <christian.stenger@theqtcompany.com>
This commit is contained in:
Orgad Shaneh
2016-01-24 11:25:53 +02:00
committed by Christian Stenger
parent 8850e163e3
commit 6062d3953d

View File

@@ -336,6 +336,8 @@ void GTestOutputReader::processOutput()
continue;
}
read.chop(1); // remove the newline from the output
if (read.endsWith('\r'))
read.chop(1);
const QString line = QString::fromLatin1(read);
if (line.trimmed().isEmpty())