testlib: Improve error message when detecting line count mismatch

Change-Id: I0e19b4c0dd7aa77063e02e6aac7e345dd7c8a5f5
Reviewed-by: Simon Hausmann <simon.hausmann@qt.io>
This commit is contained in:
Tor Arne Vestbø 2020-02-07 12:42:58 +01:00
parent 93b8cdc974
commit 4777c6d76b

View File

@ -800,8 +800,8 @@ bool tst_Selftests::compareOutput(const QString &logger, const QString &subdir,
{
if (actual.size() != expected.size()) {
*errorMessage = QString::fromLatin1("Mismatch in line count: %1 != %2.")
.arg(actual.size()).arg(expected.size());
*errorMessage = QString::fromLatin1("Mismatch in line count. Expected %1 but got %2.")
.arg(expected.size()).arg(actual.size());
return false;
}