minor fixes
authorMatthias Wachs <wachs@net.in.tum.de>
Tue, 4 Sep 2012 06:52:00 +0000 (06:52 +0000)
committerMatthias Wachs <wachs@net.in.tum.de>
Tue, 4 Sep 2012 06:52:00 +0000 (06:52 +0000)
src/gns/test_gns_max_queries.c
src/gns/test_gns_ns_lookup.c
src/gns/test_gns_simple_shorten.c
src/gns/test_gns_simple_srv_lookup.c

index 1c3037b8743294db9443c70f322c1ad586756c85..ac36873b0e34a7aeb0f96b4d8459cd395cab67e4 100644 (file)
@@ -136,6 +136,7 @@ on_lookup_result(void *cls, uint32_t rd_count,
 
   GNUNET_NAMESTORE_disconnect (namestore_handle);
   namestore_handle = NULL;
+  fprintf (stderr, "\n");
   if (rd_count == 0)
   {
     GNUNET_log (GNUNET_ERROR_TYPE_ERROR,
index fb3efebd0ea4e65afa50e2bd36f44faec26fe91a..7ac47e421a334ba509f115573a12b8cb161f23ca 100644 (file)
@@ -77,7 +77,7 @@ end_badly (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc)
 {
   die_task = GNUNET_SCHEDULER_NO_TASK;
 
-  if (resolver_handle != NULL)
+  if (NULL != resolver_handle)
   {
     GNUNET_RESOLVER_request_cancel (resolver_handle);
     resolver_handle = NULL;
@@ -279,6 +279,7 @@ handle_dns_test (void *cls,
 {
   struct sockaddr_in* sai;
 
+  resolver_handle = NULL;
   if (NULL == addr)
   {
     /* end of results */
index eaea373f79532977f7e9be5f25eb0f81d95ad332..789ba538659d82793f1de0c112b35ac7a461d5d0 100644 (file)
@@ -341,7 +341,6 @@ main (int argc, char *argv[])
                     NULL);
 
   GNUNET_TESTING_peer_run ("test-gns-simple-shorten", "test_gns_simple_lookup.conf", &do_check, NULL);
-
   return ok;
 }
 
index dd7be7fabc3823d591536a8e4b9a1ad826c132c7..fd3feacdf222086cc1c6c132feae160dc992639b 100644 (file)
@@ -306,6 +306,7 @@ main (int argc, char *argv[])
 #endif
                     NULL);
   GNUNET_TESTING_peer_run ("test-gns-simple-srv-lookup", "test_gns_simple_lookup.conf", &do_check, NULL);
+  GNUNET_DISK_directory_remove ("test-gns-simple-srv-lookup");
   return ok;
 }