struct GNUNET_NAMESTORE_QueueEntry * ns_ops[3];
+static char *directory;
static void
do_shutdown ()
{
/* Start monitoring */
zm = GNUNET_NAMESTORE_zone_monitor_start (cfg,
- privkey,
- &zone_proc,
- NULL,
- NULL);
+ privkey,
+ GNUNET_YES,
+ &zone_proc,
+ NULL,
+ NULL);
if (NULL == zm)
{
GNUNET_log (GNUNET_ERROR_TYPE_ERROR, "Failed to create zone monitor\n");
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;
{
char *hostkey_file;
+ directory = NULL;
+ GNUNET_CONFIGURATION_get_value_string(mycfg, "PATHS", "GNUNET_TEST_HOME", &directory);
+ GNUNET_DISK_directory_remove (directory);
+
res = 1;
GNUNET_asprintf(&hostkey_file,
{
res = 1;
if (0 !=
- GNUNET_TESTING_service_run ("test-namestore-api-monitoring",
- "namestore",
- "test_namestore_api.conf",
- &run,
- NULL))
- return 1;
+ GNUNET_TESTING_peer_run ("test-namestore-api-monitoring",
+ "test_namestore_api.conf",
+ &run,
+ NULL))
+ {
+ res = 1;
+ }
+ if (NULL != directory)
+ {
+ GNUNET_DISK_directory_remove (directory);
+ GNUNET_free (directory);
+ }
return res;
}