diff options
author | Karsten Heimrich <karsten.heimrich@theqtcompany.com> | 2015-05-11 15:59:51 +0200 |
---|---|---|
committer | Kai Koehne <kai.koehne@theqtcompany.com> | 2015-05-12 12:26:02 +0000 |
commit | 1209dbbacb91327d538cc455fdfa03c31e4e2e9a (patch) | |
tree | d8ffd5a46be76d0994193b7b08eafea8fdd511bf /tests/auto | |
parent | 04a549560675736d597563d80d2010b6278f9656 (diff) |
Fix auto-test for Qt >= 5.5.0
Change-Id: I8bdde116fc7721ff07f2f1eec07cfa9cf4c5620d
Reviewed-by: Kai Koehne <kai.koehne@theqtcompany.com>
Diffstat (limited to 'tests/auto')
-rw-r--r-- | tests/auto/installer/packagemanagercore/tst_packagemanagercore.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/auto/installer/packagemanagercore/tst_packagemanagercore.cpp b/tests/auto/installer/packagemanagercore/tst_packagemanagercore.cpp index 6577b782c..d6ca5e97e 100644 --- a/tests/auto/installer/packagemanagercore/tst_packagemanagercore.cpp +++ b/tests/auto/installer/packagemanagercore/tst_packagemanagercore.cpp @@ -90,7 +90,11 @@ class tst_PackageManagerCore : public QObject private: void setIgnoreMessage(const QString &testDirectory) { +#if QT_VERSION < QT_VERSION_CHECK(5, 5, 0) const QString message = "\"\t- arguments: %1\" "; +#else + const QString message = "\"\\t- arguments: %1\" "; +#endif QTest::ignoreMessage(QtDebugMsg, "Operations sanity check succeeded."); QTest::ignoreMessage(QtDebugMsg, "\"backup operation: Mkdir\" "); QTest::ignoreMessage(QtDebugMsg, qPrintable(message.arg(testDirectory))); |