I have found out that QTest functions chop message string. Because most

valuable for us information goes last we must keep this in mind.

--HG--
branch : develop
This commit is contained in:
Roman Telezhynskyi 2019-02-22 17:54:00 +02:00
parent be7d0692a4
commit bafb7ff70a
2 changed files with 5 additions and 5 deletions

View File

@ -124,7 +124,7 @@ void TST_TapeCommandLine::OpenMeasurements()
<< QCoreApplication::applicationDirPath() + QDir::separator() + *tmpTestFolder +
QDir::separator() + file, error);
QVERIFY2(exit == exitCode, qUtf8Printable(error));
QVERIFY2(exit == exitCode, qUtf8Printable(error.right(350)));
}
//---------------------------------------------------------------------------------------------------------------------

View File

@ -122,7 +122,7 @@ void TST_ValentinaCommandLine::OpenPatterns()
const int exit = Run(exitCode, ValentinaPath(), QStringList() << arguments.split(";;")
<< tmp + QDir::separator() + file, error);
QVERIFY2(exit == exitCode, qUtf8Printable(error));
QVERIFY2(exit == exitCode, qUtf8Printable(error.right(350)));
}
//---------------------------------------------------------------------------------------------------------------------
@ -174,7 +174,7 @@ void TST_ValentinaCommandLine::ExportMode()
<< arguments.split(";;");
const int exit = Run(exitCode, ValentinaPath(), arg, error);
QVERIFY2(exit == exitCode, qUtf8Printable(error));
QVERIFY2(exit == exitCode, qUtf8Printable(error.right(350)));
}
//---------------------------------------------------------------------------------------------------------------------
@ -232,7 +232,7 @@ void TST_ValentinaCommandLine::TestMode()
<< arguments.split(";;");
const int exit = Run(exitCode, ValentinaPath(), arg, error);
QVERIFY2(exit == exitCode, qUtf8Printable(error));
QVERIFY2(exit == exitCode, qUtf8Printable(error.right(350)));
}
//---------------------------------------------------------------------------------------------------------------------
@ -293,7 +293,7 @@ void TST_ValentinaCommandLine::TestOpenCollection()
<< arguments.split(";;");
const int exit = Run(exitCode, ValentinaPath(), arg, error);
QVERIFY2(exit == exitCode, qUtf8Printable(error));
QVERIFY2(exit == exitCode, qUtf8Printable(error.right(350)));
}
//---------------------------------------------------------------------------------------------------------------------