[gmime] fixed test-smime to pass 100%



commit f70c96eb3e17a088b15fdc885c82d6ea73e7905c
Author: Jeffrey Stedfast <fejj gnome org>
Date:   Sat Mar 11 12:23:28 2017 -0500

    fixed test-smime to pass 100%

 tests/test-smime.c |    7 ++++++-
 1 files changed, 6 insertions(+), 1 deletions(-)
---
diff --git a/tests/test-smime.c b/tests/test-smime.c
index 91b09db..f842601 100644
--- a/tests/test-smime.c
+++ b/tests/test-smime.c
@@ -197,6 +197,10 @@ create_message (GMimeObject *body)
        g_mime_stream_reset (stream);
        g_object_unref (message);
        
+       /*fprintf (stderr, "-----BEGIN RAW MESSAGE-----\n%.*s-----END RAW MESSAGE-----\n",
+                GMIME_STREAM_MEM (stream)->buffer->len,
+                GMIME_STREAM_MEM (stream)->buffer->data);*/
+       
        parser = g_mime_parser_new ();
        g_mime_parser_init_with_stream (parser, stream);
        g_object_unref (stream);
@@ -394,7 +398,8 @@ test_pkcs7_mime_encrypt (void)
        }
        
        text = g_mime_text_part_get_text ((GMimeTextPart *) entity);
-       if (strcmp (SIGNED_CONTENT, text) != 0) {
+       
+       if (strcmp (ENCRYPTED_CONTENT, text) != 0) {
                ex = exception_new ("text part content does not match");
                g_object_unref (entity);
                g_free (text);


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