[gmime] Try not to fail the autocrypt tests just because crypto isn't enabled



commit e5151d4b10d3d5d1420db13450c729f2f1cdc368
Author: Jeffrey Stedfast <jestedfa microsoft com>
Date:   Sat Oct 27 11:47:03 2018 -0400

    Try not to fail the autocrypt tests just because crypto isn't enabled

 tests/test-autocrypt.c | 4 ++++
 1 file changed, 4 insertions(+)
---
diff --git a/tests/test-autocrypt.c b/tests/test-autocrypt.c
index 8e26aa8e..1aee4951 100644
--- a/tests/test-autocrypt.c
+++ b/tests/test-autocrypt.c
@@ -892,6 +892,10 @@ test_ah_message_parse (void)
                                                g_error_free (err);
                                                throw (ex);
                                        }
+#else
+                                       /* pretend that we do not expect any gossip so that we don't fail the 
test
+                                          simply because we don't have crypto support. */
+                                       gossip_expected = FALSE;
 #endif
                                }
                        }


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