aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorChristian Kandeler <christian.kandeler@qt.io>2017-07-07 10:33:15 +0200
committerChristian Kandeler <christian.kandeler@qt.io>2017-07-07 09:29:43 +0000
commit74454897c95b828557b1023a8c8d836586434cc6 (patch)
treeeccd4c35d32658c26e44676b4f2b279f623abcd0 /tests
parentd0e1097ad2e82c43a4bea6f35951da44b571a793 (diff)
De-noise "deprecatedProperty" autotest
Change-Id: I09a704534a470eaad514cd6c0d40f2a9801a61a5 Reviewed-by: Joerg Bornemann <joerg.bornemann@qt.io>
Diffstat (limited to 'tests')
-rw-r--r--tests/auto/blackbox/tst_blackbox.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/auto/blackbox/tst_blackbox.cpp b/tests/auto/blackbox/tst_blackbox.cpp
index 0a8bf6f53..77a6f8a81 100644
--- a/tests/auto/blackbox/tst_blackbox.cpp
+++ b/tests/auto/blackbox/tst_blackbox.cpp
@@ -625,7 +625,9 @@ void TestBlackbox::dependencyProfileMismatch()
void TestBlackbox::deprecatedProperty()
{
QDir::setCurrent(testDataDir + "/deprecated-property");
- QVERIFY(runQbs(QStringList("-q")) != 0);
+ QbsRunParameters params(QStringList("-q"));
+ params.expectFailure = true;
+ QVERIFY(runQbs(params) != 0);
QVERIFY2(m_qbsStderr.contains("deprecated-property.qbs:6:24 The property 'oldProp' is "
"deprecated and will be removed in Qbs 99.9.0."), m_qbsStderr.constData());
QVERIFY2(m_qbsStderr.contains("deprecated-property.qbs:7:28 The property 'veryOldProp' can no "