diff options
Diffstat (limited to 'tests/testparse.cpp')
-rw-r--r-- | tests/testparse.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/testparse.cpp b/tests/testparse.cpp index 9288baf63..fa1d6d223 100644 --- a/tests/testparse.cpp +++ b/tests/testparse.cpp @@ -166,7 +166,7 @@ void TestParse::testParseNewFormat() */ f.open(QFile::ReadOnly); - while ((firstLine = f.readLine()).length() > 3 && !f.atEnd()) { + while ((firstLine = f.readLine().trimmed()).length() > 0 && !f.atEnd()) { if (firstLine.contains("//Log interval: ")) delta = firstLine.remove(QString::fromLatin1("//Log interval: ")).trimmed().remove(QString::fromLatin1(" s")); } |