qt: Use QVERIFY instead of Q_ASSERT in conf test
authorAndre Heinecke <aheinecke@intevation.de>
Mon, 16 Jan 2017 13:16:20 +0000 (14:16 +0100)
committerAndre Heinecke <aheinecke@intevation.de>
Mon, 16 Jan 2017 13:16:20 +0000 (14:16 +0100)
* lang/qt/tests/t-config.cpp: Use QVERIFY instead of Q_ASSERT.

lang/qt/tests/t-config.cpp

index 046147c..0a7df22 100644 (file)
@@ -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;