testing not yet ready for testing
authorChristian Grothoff <christian@grothoff.org>
Tue, 27 Oct 2009 22:54:11 +0000 (22:54 +0000)
committerChristian Grothoff <christian@grothoff.org>
Tue, 27 Oct 2009 22:54:11 +0000 (22:54 +0000)
src/Makefile.am
src/testing/test_testing.c
src/testing/testing.c
src/util/connection.c

index c30045c9b2967ad46d7754eefd7489170833b7ea..50d75916b7db9f8a6d168a7e0fba676edd1e28f8 100644 (file)
@@ -20,7 +20,6 @@ SUBDIRS = \
   template \
   transport \
   core \
-  testing \
   $(HOSTLIST_DIR) \
   topology \
   fs \
index ab3bc10bec4397cc2b4af1d2dce3410cbf5329be..886427402e4875cb2acec78c05d7e3ccbc129874 100644 (file)
@@ -24,7 +24,7 @@
 #include "platform.h"
 #include "gnunet_testing_lib.h"
 
-#define VERBOSE GNUNET_NO
+#define VERBOSE GNUNET_YES
 
 static int ok;
 
@@ -91,7 +91,7 @@ check ()
     GNUNET_GETOPT_OPTION_END
   };
   GNUNET_PROGRAM_run ((sizeof (argv) / sizeof (char *)) - 1,
-                      argv, "test-tesing", "nohelp",
+                      argv, "test-testing", "nohelp",
                       options, &run, &ok);
   return ok;
 }
index 6ecb9c94425fdebdaed0d35dc28449940355da4f..e4cc74827faabbcc4e5f5f52f2df1c7fd480eec9 100644 (file)
 #include "gnunet_testing_lib.h"
 #include "gnunet_transport_service.h"
 
-#define DEBUG_TESTING GNUNET_NO
+#define DEBUG_TESTING GNUNET_YES
 
 /**
  * How long do we wait after starting gnunet-service-arm
  * for the core service to be alive?
  */
-#define ARM_START_WAIT GNUNET_TIME_relative_multiply (GNUNET_TIME_UNIT_SECONDS, 120)
+#define ARM_START_WAIT GNUNET_TIME_relative_multiply (GNUNET_TIME_UNIT_SECONDS, 2)
 
 /**
  * How many times are we willing to try to wait for "scp" or
index 6f2b5a3490267a00ed2ad563c88efd8f71f67741..3cf2ae47597821b1cfedb666d945ba50b9ac525f 100644 (file)
@@ -527,6 +527,11 @@ destroy_continuation (void *cls,
     GNUNET_break (GNUNET_OK == GNUNET_NETWORK_socket_close (sock->sock));
   GNUNET_free_non_null (sock->addr);
   GNUNET_free_non_null (sock->hostname);
+#if DEBUG_CONNECTION
+  GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
+             "Freeing memory of connection %p.\n",
+             sock);
+#endif
   GNUNET_free (sock);
 }
 
@@ -774,7 +779,8 @@ try_connect_using_address (void *cls,
     {
 #if DEBUG_CONNECTION
       GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
-                 "Connection has already been destroyed.\n");
+                 "Connection %p has already been destroyed.\n",
+                 h);
 #endif
       return; /* already destroyed */
     }
@@ -1565,6 +1571,11 @@ GNUNET_CONNECTION_notify_transmit_ready_cancel (struct
   GNUNET_assert (h->notify_ready != NULL);
   if (0 != (h->sh->ccs & COCO_TRANSMIT_READY))
     {
+#if DEBUG_CONNECTION
+      GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, 
+                 "notify_transmit_ready_cancel cancels timeout_task (%p)\n",
+                 h);
+#endif
       GNUNET_SCHEDULER_cancel (h->sh->sched, h->timeout_task);
       h->timeout_task = GNUNET_SCHEDULER_NO_TASK;
       h->sh->ccs -= COCO_TRANSMIT_READY;