diff options
Diffstat (limited to 'tests/auto/blackbox/tst_blackbox.cpp')
-rw-r--r-- | tests/auto/blackbox/tst_blackbox.cpp | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/auto/blackbox/tst_blackbox.cpp b/tests/auto/blackbox/tst_blackbox.cpp index 64377dab8..fbcb9f446 100644 --- a/tests/auto/blackbox/tst_blackbox.cpp +++ b/tests/auto/blackbox/tst_blackbox.cpp @@ -4287,6 +4287,16 @@ void TestBlackbox::noProfile() QVERIFY2(m_qbsStdout.contains("profile: none"), m_qbsStdout.constData()); } +void TestBlackbox::noSuchProfile() +{ + QDir::setCurrent(testDataDir + "/no-such-profile"); + QbsRunParameters params(QStringList("products.theProduct.p:1")); + params.profile = "jibbetnich"; + params.expectFailure = true; + QVERIFY(runQbs(params) != 0); + QVERIFY2(m_qbsStderr.contains("Profile 'jibbetnich' does not exist"), m_qbsStderr.constData()); +} + void TestBlackbox::nonBrokenFilesInBrokenProduct() { QDir::setCurrent(testDataDir + "/non-broken-files-in-broken-product"); |