diff options
author | NIIBE Yutaka <[email protected]> | 2020-05-11 05:20:48 +0000 |
---|---|---|
committer | NIIBE Yutaka <[email protected]> | 2020-05-11 05:20:48 +0000 |
commit | 0cc040e82f9943792a58e73dbc97e20d312858fb (patch) | |
tree | 9013c41eea77a1b16b9c95314e174dd6acdf298e /lang/qt/tests/t-config.cpp | |
parent | w32: Explicitly link ws2_32 (diff) | |
download | gpgme-0cc040e82f9943792a58e73dbc97e20d312858fb.tar.gz gpgme-0cc040e82f9943792a58e73dbc97e20d312858fb.zip |
tests: Remove/change tests for GnuPG 2.3 with no gpg.keyserver.
* lang/qt/tests/t-config.cpp (testKeyserver): Remove.
* tests/gpg/t-gpgconf.c (main): Test with dirmngr.keyserver.
Signed-off-by: NIIBE Yutaka <[email protected]>
Diffstat (limited to 'lang/qt/tests/t-config.cpp')
-rw-r--r-- | lang/qt/tests/t-config.cpp | 30 |
1 files changed, 0 insertions, 30 deletions
diff --git a/lang/qt/tests/t-config.cpp b/lang/qt/tests/t-config.cpp index afbb4d1b..9ec95669 100644 --- a/lang/qt/tests/t-config.cpp +++ b/lang/qt/tests/t-config.cpp @@ -50,36 +50,6 @@ class CryptoConfigTest: public QGpgMETest Q_OBJECT private Q_SLOTS: - void testKeyserver() - { - // Repeatedly set a config value and clear it - // this was broken at some point so it gets a - // unit test. - for (int i = 0; i < 10; i++) { - auto conf = cryptoConfig(); - QVERIFY(conf); - auto entry = conf->entry(QStringLiteral("gpg"), - QStringLiteral("Keyserver"), - QStringLiteral("keyserver")); - QVERIFY(entry); - const QString url(QStringLiteral("hkp://foo.bar.baz")); - entry->setStringValue(url); - conf->sync(false); - conf->clear(); - entry = conf->entry(QStringLiteral("gpg"), - QStringLiteral("Keyserver"), - QStringLiteral("keyserver")); - QCOMPARE (entry->stringValue(), url); - entry->setStringValue(QString()); - conf->sync(false); - conf->clear(); - entry = conf->entry(QStringLiteral("gpg"), - QStringLiteral("Keyserver"), - QStringLiteral("keyserver")); - QCOMPARE (entry->stringValue(), QString()); - } - } - void testDefault() { if (GpgME::engineInfo(GpgME::GpgEngine).engineVersion() < "2.2.0") { |