mirror of
https://github.com/JulianGro/overte.git
synced 2025-04-25 09:15:50 +02:00
Used 'system' return value.
This commit is contained in:
parent
311d794529
commit
4b3f892abe
1 changed files with 7 additions and 2 deletions
|
@ -74,11 +74,16 @@ void Test::evaluateTests() {
|
|||
for (int i = 0; keepOn && i < expectedImages.length(); ++i) {
|
||||
QString diffFilename = "HIFI_AutoTest_diff.txt";
|
||||
QString command = "magick.exe compare -metric MAE " + expectedImages[i] + " " + resultImages[i] + " null: 2>" + diffFilename;
|
||||
system(command.toStdString().c_str());
|
||||
|
||||
if (system(command.toStdString().c_str()) == -1) {
|
||||
// command has failed
|
||||
messageBox.critical(0, "Aborting!", "Error executing magick.exe");
|
||||
exit(-1);
|
||||
}
|
||||
|
||||
QFile file(diffFilename);
|
||||
if (!file.open(QIODevice::ReadOnly)) {
|
||||
messageBox.critical(0, "error", file.errorString());
|
||||
messageBox.critical(0, "Error", file.errorString());
|
||||
}
|
||||
|
||||
// First value on line is the comparison result
|
||||
|
|
Loading…
Reference in a new issue