[gmime] Disable some test-pgpmime logic for old gpgme versions



commit c8e6a54999d743bb1887f64dec4f6384cd211c15
Author: Jeffrey Stedfast <fejj gnome org>
Date:   Fri Mar 10 19:31:37 2017 -0500

    Disable some test-pgpmime logic for old gpgme versions

 tests/test-pgpmime.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/tests/test-pgpmime.c b/tests/test-pgpmime.c
index 3024714..f3e63a5 100644
--- a/tests/test-pgpmime.c
+++ b/tests/test-pgpmime.c
@@ -31,6 +31,7 @@
 #include <fcntl.h>
 #include <errno.h>
 
+#include <gpgme.h>
 #include <gmime/gmime.h>
 
 #include "testsuite.h"
@@ -492,6 +493,7 @@ int main (int argc, char *argv[])
                testsuite_check_failed ("multipart/signed failed: %s", ex->message);
        } finally;
        
+#if GPGME_VERSION_NUMBER >= 0x010700
        testsuite_check ("multipart/encrypted");
        try {
                create_encrypted_message (ctx, FALSE, &cleartext, &stream);
@@ -541,6 +543,7 @@ int main (int argc, char *argv[])
        }
        
        g_free (session_key);
+#endif /* GPGME_VERSION NUMBER >= 0x010700 */
        
        g_object_unref (ctx);
        g_free (gpg);


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]