Qt: Disable keylocate test for gnupg < 2.0.10

* lang/qt/tests/t-keylocate.cpp: Disable test for gnupg < 2.0.10
This commit is contained in:
Andre Heinecke 2016-07-14 17:03:05 +02:00
parent 41de1ab904
commit d2f2cbd297

View File

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