diff options
author | Andre Heinecke <[email protected]> | 2017-01-16 13:16:20 +0000 |
---|---|---|
committer | Andre Heinecke <[email protected]> | 2017-01-16 13:16:20 +0000 |
commit | abfd241d1a1ae8e30e18b7c5e0658b8c54d89544 (patch) | |
tree | 6f9be2554c997faa6a382147852f295724c1ab53 | |
parent | qt: Add test for CryptoConfig (diff) | |
download | gpgme-abfd241d1a1ae8e30e18b7c5e0658b8c54d89544.tar.gz gpgme-abfd241d1a1ae8e30e18b7c5e0658b8c54d89544.zip |
qt: Use QVERIFY instead of Q_ASSERT in conf test
* lang/qt/tests/t-config.cpp: Use QVERIFY instead of Q_ASSERT.
-rw-r--r-- | lang/qt/tests/t-config.cpp | 6 |
1 files 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; |