| 315 | } |
| 316 | |
| 317 | void JudgingThread::compareWithDiff(const QString &contestantOutput) { |
| 318 | QString cmd = diffPath; |
| 319 | QStringList cmdArgs = |
| 320 | (QStringList(task->getDiffArguments()) |
| 321 | << QFileInfo(outputFile).absoluteFilePath().replace('/', QDir::separator()) << contestantOutput); |
| 322 | |
| 323 | if (QProcess::execute(cmd, cmdArgs) != 0) { |
| 324 | score = 0; |
| 325 | result = WrongAnswer; |
| 326 | } else { |
| 327 | score = fullScore; |
| 328 | result = CorrectAnswer; |
| 329 | } |
| 330 | } |
| 331 | |
| 332 | void JudgingThread::compareRealNumbers(const QString &contestantOutput) { |
| 333 | FILE *contestantOutputFile = fopen(contestantOutput.toLocal8Bit().data(), "r"); |
nothing calls this directly
no test coverage detected