diff options
author | Thiago Macieira <thiago.macieira@nokia.com> | 2010-04-28 09:51:07 (GMT) |
---|---|---|
committer | Thiago Macieira <thiago.macieira@nokia.com> | 2010-04-28 09:51:07 (GMT) |
commit | 1e4912c70ee2ce8ce7e62bc1daad625070bc4a44 (patch) | |
tree | f80e035d90332c9bcda6001887b89600d3c78223 /tests/auto/selftests/tst_selftests.cpp | |
parent | db2d0f1d5d6a3409e5e43d3fdd17ddbb8e1b553d (diff) | |
download | Qt-1e4912c70ee2ce8ce7e62bc1daad625070bc4a44.zip Qt-1e4912c70ee2ce8ce7e62bc1daad625070bc4a44.tar.gz Qt-1e4912c70ee2ce8ce7e62bc1daad625070bc4a44.tar.bz2 |
tst_selftest: use @INSERT_QT_VERSION_HERE@ to indicate the Qt version.
Otherwise, the tests break when the Qt version changes
Diffstat (limited to 'tests/auto/selftests/tst_selftests.cpp')
-rw-r--r-- | tests/auto/selftests/tst_selftests.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/auto/selftests/tst_selftests.cpp b/tests/auto/selftests/tst_selftests.cpp index f34e2fb..0ef000c 100644 --- a/tests/auto/selftests/tst_selftests.cpp +++ b/tests/auto/selftests/tst_selftests.cpp @@ -396,7 +396,7 @@ void tst_Selftests::doRunSubTest(QString const& subdir, QString const& logger, Q continue; const QString output(QString::fromLatin1(line)); - const QString expected(QString::fromLatin1(exp.at(i)).replace("<INSERT_QT_VERSION_HERE>", QT_VERSION_STR)); + const QString expected(QString::fromLatin1(exp.at(i)).replace("@INSERT_QT_VERSION_HERE@", QT_VERSION_STR)); if (line.contains("ASSERT") && output != expected) { QEXPECT_FAIL("assert", "QTestLib prints out the absolute path.", Continue); |