Refactoring. Use QStringLiteral instead of QString.

--HG--
branch : develop
This commit is contained in:
Roman Telezhynskyi 2018-06-21 14:41:36 +03:00
parent 13a8b83a0e
commit 598fea3969

View File

@ -120,27 +120,27 @@ int AbstractTest::Run(int exit, const QString &program, const QStringList &argum
if (not process->waitForStarted(msecs)) if (not process->waitForStarted(msecs))
{ {
error = QString("The start operation timed out or an error occurred.\n%1").arg(parameters); error = QStringLiteral("The start operation timed out or an error occurred.\n%1").arg(parameters);
process->kill(); process->kill();
return TST_EX_START_TIME_OUT; return TST_EX_START_TIME_OUT;
} }
if (not process->waitForFinished(msecs)) if (not process->waitForFinished(msecs))
{ {
error = QString("The finish operation timed out or an error occurred.\n%1").arg(parameters); error = QStringLiteral("The finish operation timed out or an error occurred.\n%1").arg(parameters);
process->kill(); process->kill();
return TST_EX_FINISH_TIME_OUT; return TST_EX_FINISH_TIME_OUT;
} }
if (process->exitStatus() == QProcess::CrashExit) if (process->exitStatus() == QProcess::CrashExit)
{ {
error = QString("Program crashed.\n%1\n%2").arg(parameters, QString(process->readAllStandardError())); error = QStringLiteral("Program crashed.\n%1\n%2").arg(parameters, QString(process->readAllStandardError()));
return TST_EX_CRASH; return TST_EX_CRASH;
} }
if (process->exitCode() != exit) if (process->exitCode() != exit)
{ {
error = QString("Unexpected finish.\n%1").arg(QString(process->readAllStandardError())); error = QStringLiteral("Unexpected finish.\n%1").arg(QString(process->readAllStandardError()));
return process->exitCode(); return process->exitCode();
} }