tests/auto/selftests/tst_selftests.cpp
branchRCL_3
changeset 5 d3bac044e0f0
parent 4 3b1da2848fc7
child 14 c0432d11811c
equal deleted inserted replaced
4:3b1da2848fc7 5:d3bac044e0f0
   246             continue;
   246             continue;
   247         if (line.endsWith(" : failure location"))
   247         if (line.endsWith(" : failure location"))
   248             continue;
   248             continue;
   249 
   249 
   250         const QString output(QString::fromLatin1(line));
   250         const QString output(QString::fromLatin1(line));
   251         const QString expected(QString::fromLatin1(exp.at(i)));
   251         const QString expected(QString::fromLatin1(exp.at(i)).replace("<INSERT_QT_VERSION_HERE>", QT_VERSION_STR));
   252 
   252 
   253         if (line.contains("ASSERT") && output != expected)
   253         if (line.contains("ASSERT") && output != expected)
   254             QEXPECT_FAIL("assert", "QTestLib prints out the absolute path.", Continue);
   254             QEXPECT_FAIL("assert", "QTestLib prints out the absolute path.", Continue);
   255 
   255 
   256         /* On some platforms we compile without RTTI, and as a result we never throw an exception. */
   256         /* On some platforms we compile without RTTI, and as a result we never throw an exception. */