-remove async ecc key generation, not needed
[oweals/gnunet.git] / src / util / test_mq.c
index 45bba0a6b09590bbd1a58007d2490c29dae3f2d8..f98fcd2354c5e22dbee22d80b68320589b4e66c1 100644 (file)
 */
 
 /**
- * @file set/test_mq.c
+ * @file util/test_mq.c
  * @brief simple tests for mq
  */
 #include "platform.h"
 #include "gnunet_util_lib.h"
-#include "gnunet_testing_lib.h"
 
 
 GNUNET_NETWORK_STRUCT_BEGIN
@@ -37,8 +36,9 @@ struct MyMessage
 
 GNUNET_NETWORK_STRUCT_END
 
-void
-test1 (void)
+
+static void
+test1 ()
 {
   struct GNUNET_MQ_Envelope *mqm;
   struct MyMessage *mm;
@@ -54,8 +54,8 @@ test1 (void)
 }
 
 
-void
-test2 (void)
+static void
+test2 ()
 {
   struct GNUNET_MQ_Envelope *mqm;
   struct GNUNET_MessageHeader *mh;
@@ -68,17 +68,16 @@ test2 (void)
   mqm = GNUNET_MQ_msg_header_extra (mh, 20, 42);
   GNUNET_assert (42 == ntohs (mh->type));
   GNUNET_assert (sizeof (struct GNUNET_MessageHeader) + 20 == ntohs (mh->size));
+  GNUNET_MQ_discard (mqm);
 }
 
 
 int
 main (int argc, char **argv)
 {
-
   GNUNET_log_setup ("test-mq", "INFO", NULL);
   test1 ();
   test2 ();
-
   return 0;
 }