Qt: Disable keylocate test for gnupg < 2.0.10
authorAndre Heinecke <aheinecke@intevation.de>
Thu, 14 Jul 2016 15:03:05 +0000 (17:03 +0200)
committerAndre Heinecke <aheinecke@intevation.de>
Thu, 14 Jul 2016 15:03:05 +0000 (17:03 +0200)
* lang/qt/tests/t-keylocate.cpp: Disable test for gnupg < 2.0.10

lang/qt/tests/t-keylocate.cpp

index 43aaf1c..5f52cc3 100644 (file)
@@ -35,6 +35,7 @@
 #include "keylistjob.h"
 #include "protocol.h"
 #include "keylistresult.h"
+#include "engineinfo.h"
 
 using namespace QGpgME;
 using namespace GpgME;
@@ -88,6 +89,9 @@ private Q_SLOTS:
 
     void testKeyLocateSingle()
     {
+        if (GpgME::engineInfo(GpgME::GpgEngine).engineVersion() < "2.0.10") {
+            return;
+        }
         auto *job = openpgp()->locateKeysJob();
         mTestpattern = QStringLiteral("alfa@example.net");