diff options
author | Andre Heinecke <[email protected]> | 2019-11-06 08:21:02 +0000 |
---|---|---|
committer | Andre Heinecke <[email protected]> | 2019-11-06 08:21:02 +0000 |
commit | e7b5c6405da515101f62acce2837e6c0cc115b76 (patch) | |
tree | 5e6c416793ed3ef6a7af7496596b2088faa79b54 /lang/qt/tests/t-remarks.cpp | |
parent | qt, tests: Replace accidentally commited assert (diff) | |
download | gpgme-e7b5c6405da515101f62acce2837e6c0cc115b76.tar.gz gpgme-e7b5c6405da515101f62acce2837e6c0cc115b76.zip |
qt, tests: Add check for supported versions
* lang/qt/tests/t-encrypt.cpp (decryptSupported): Moved to
t-support as loopbackSupported.
* lang/qt/tests/t-remarks.cpp: Check for loopbackSupported.
* lang/qt/tests/t-support.cpp, lang/qt/tests/t-support.h
(loopbackSupported): New.
--
This ensures that the tests do not fail with GnuPG 2.0.x
Diffstat (limited to 'lang/qt/tests/t-remarks.cpp')
-rw-r--r-- | lang/qt/tests/t-remarks.cpp | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/lang/qt/tests/t-remarks.cpp b/lang/qt/tests/t-remarks.cpp index f6227d15..c39c430b 100644 --- a/lang/qt/tests/t-remarks.cpp +++ b/lang/qt/tests/t-remarks.cpp @@ -62,6 +62,9 @@ public: // case in the UI void testRemarkOwnKey() { + if (!loopbackSupported()) { + return; + } // Get the signing key (alfa) auto ctx = Context::create(OpenPGP); QVERIFY (ctx); @@ -109,6 +112,9 @@ private Q_SLOTS: void testRemarkReplaceSingleUIDExportable() { + if (!loopbackSupported()) { + return; + } // Get the signing key (alfa) auto ctx = Context::create(OpenPGP); QVERIFY (ctx); @@ -197,6 +203,9 @@ private Q_SLOTS: void testMultipleRemarks() { + if (!loopbackSupported()) { + return; + } // Get the signing key1 (alfa) auto ctx = Context::create(OpenPGP); QVERIFY (ctx); @@ -285,6 +294,9 @@ private Q_SLOTS: void testRemarkReplaceSingleUID() { + if (!loopbackSupported()) { + return; + } // Get the signing key (alfa) auto ctx = Context::create(OpenPGP); QVERIFY (ctx); @@ -372,6 +384,9 @@ private Q_SLOTS: void testRemarkReplaceMultiUID() { + if (!loopbackSupported()) { + return; + } // Get the signing key (alfa) auto ctx = Context::create(OpenPGP); QVERIFY (ctx); |