qt: Use QVERIFY instead of Q_ASSERT in conf test

* lang/qt/tests/t-config.cpp: Use QVERIFY instead of Q_ASSERT.
This commit is contained in:
Andre Heinecke 2017-01-16 14:16:20 +01:00
parent 8aba08d1d0
commit abfd241d1a

View File

@ -54,11 +54,11 @@ private Q_SLOTS:
// unit test. // unit test.
for (int i = 0; i < 10; i++) { for (int i = 0; i < 10; i++) {
auto conf = cryptoConfig(); auto conf = cryptoConfig();
Q_ASSERT (conf); QVERIFY(conf);
auto entry = conf->entry(QStringLiteral("gpg"), auto entry = conf->entry(QStringLiteral("gpg"),
QStringLiteral("Keyserver"), QStringLiteral("Keyserver"),
QStringLiteral("keyserver")); QStringLiteral("keyserver"));
Q_ASSERT(entry); QVERIFY(entry);
const QString url(QStringLiteral("hkp://foo.bar.baz")); const QString url(QStringLiteral("hkp://foo.bar.baz"));
entry->setStringValue(url); entry->setStringValue(url);
conf->sync(false); conf->sync(false);
@ -82,7 +82,7 @@ private Q_SLOTS:
QGpgMETest::initTestCase(); QGpgMETest::initTestCase();
const QString gpgHome = qgetenv("GNUPGHOME"); const QString gpgHome = qgetenv("GNUPGHOME");
qputenv("GNUPGHOME", mDir.path().toUtf8()); qputenv("GNUPGHOME", mDir.path().toUtf8());
Q_ASSERT(mDir.isValid()); QVERIFY(mDir.isValid());
} }
private: private:
QTemporaryDir mDir; QTemporaryDir mDir;