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:
parent
93b8cdc974
commit
4777c6d76b
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user