diff options
-rw-r--r-- | tests/auto/testlib/selftests/tst_selftests.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/auto/testlib/selftests/tst_selftests.cpp b/tests/auto/testlib/selftests/tst_selftests.cpp index 35b8f226ec..9c23574456 100644 --- a/tests/auto/testlib/selftests/tst_selftests.cpp +++ b/tests/auto/testlib/selftests/tst_selftests.cpp @@ -759,8 +759,8 @@ void tst_Selftests::doRunSubTest(QString const& subdir, QStringList const& logge QList<QByteArray> res = splitLines(actualOutputs[n]); QString errorMessage; QString expectedFileName = expectedFileNameFromTest(subdir, logger); - if (QFileInfo::exists(expectedFileName)) { - QByteArrayList exp = expectedResult(expectedFileName); + QByteArrayList exp = expectedResult(expectedFileName); + if (!exp.isEmpty()) { #ifdef Q_CC_MINGW // MinGW formats double numbers differently (last verified with 7.1) if (n == 0 && subdir == QStringLiteral("float")) { |