fix for size
[oweals/gnunet.git] / src / namestore / test_namestore_api_zone_iteration.c
index f7e4fe4891caec04d0f10274c481c684fd13d633..f2eb1d17bcaa6566e1d925ddfda5e5bf71d4870f 100644 (file)
@@ -330,6 +330,7 @@ create_record (unsigned int count)
     rd[c].record_type = 1111;
     rd[c].data_size = 50;
     rd[c].data = GNUNET_malloc(50);
+    rd[c].flags = 0;
     memset ((char *) rd[c].data, 'a', 50);
   }
   return rd;
@@ -440,12 +441,12 @@ int
 main (int argc, char *argv[])
 {
   res = 1;
+  GNUNET_DISK_directory_remove ("/tmp/test-gnunet-namestore");
   if (0 !=
-      GNUNET_TESTING_service_run ("test-namestore-api-zone-iteration",
-                                 "namestore",
-                                 "test_namestore_api.conf",
-                                 &run,
-                                 NULL))
+      GNUNET_TESTING_peer_run ("test-namestore-api-zone-iteration",
+                               "test_namestore_api.conf",
+                               &run,
+                               NULL))
     return 1;
   return res;
 }