From d2f2cbd297c4d2f2c3264ecc3ffb7a2b3a70bd55 Mon Sep 17 00:00:00 2001 From: Andre Heinecke Date: Thu, 14 Jul 2016 17:03:05 +0200 Subject: [PATCH] Qt: Disable keylocate test for gnupg < 2.0.10 * lang/qt/tests/t-keylocate.cpp: Disable test for gnupg < 2.0.10 --- lang/qt/tests/t-keylocate.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lang/qt/tests/t-keylocate.cpp b/lang/qt/tests/t-keylocate.cpp index 43aaf1c4..5f52cc30 100644 --- a/lang/qt/tests/t-keylocate.cpp +++ b/lang/qt/tests/t-keylocate.cpp @@ -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");