From abfd241d1a1ae8e30e18b7c5e0658b8c54d89544 Mon Sep 17 00:00:00 2001 From: Andre Heinecke Date: Mon, 16 Jan 2017 14:16:20 +0100 Subject: [PATCH] qt: Use QVERIFY instead of Q_ASSERT in conf test * lang/qt/tests/t-config.cpp: Use QVERIFY instead of Q_ASSERT. --- lang/qt/tests/t-config.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lang/qt/tests/t-config.cpp b/lang/qt/tests/t-config.cpp index 046147ce..0a7df225 100644 --- a/lang/qt/tests/t-config.cpp +++ b/lang/qt/tests/t-config.cpp @@ -54,11 +54,11 @@ private Q_SLOTS: // unit test. for (int i = 0; i < 10; i++) { auto conf = cryptoConfig(); - Q_ASSERT (conf); + QVERIFY(conf); auto entry = conf->entry(QStringLiteral("gpg"), QStringLiteral("Keyserver"), QStringLiteral("keyserver")); - Q_ASSERT(entry); + QVERIFY(entry); const QString url(QStringLiteral("hkp://foo.bar.baz")); entry->setStringValue(url); conf->sync(false); @@ -82,7 +82,7 @@ private Q_SLOTS: QGpgMETest::initTestCase(); const QString gpgHome = qgetenv("GNUPGHOME"); qputenv("GNUPGHOME", mDir.path().toUtf8()); - Q_ASSERT(mDir.isValid()); + QVERIFY(mDir.isValid()); } private: QTemporaryDir mDir;