static void
do_stop (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc)
{
+ char *fn = cls;
struct GNUNET_TIME_Relative del;
char *fancy;
"Timeout during download, shutting down with error\n");
ok = 1;
}
+ if (NULL != fn)
+ {
+ GNUNET_DISK_directory_remove (fn);
+ GNUNET_free (fn);
+ }
}
static void
-do_download (void *cls, const struct GNUNET_FS_Uri *uri)
+do_download (void *cls, const struct GNUNET_FS_Uri *uri,
+ const char *fn)
{
if (NULL == uri)
{
GNUNET_FS_TEST_download (daemons[0], TIMEOUT,
anonymity_level, SEED, uri,
VERBOSE, &do_stop,
- NULL);
+ (NULL == fn)
+ ? NULL
+ : GNUNET_strdup (fn));
}
static void
do_publish (void *cls,
unsigned int num_peers,
- struct GNUNET_TESTBED_Peer **peers)
+ struct GNUNET_TESTBED_Peer **peers,
+ unsigned int links_succeeded,
+ unsigned int links_failed)
{
unsigned int i;
- if (NULL != strstr (progname, "stream"))
+ if (NULL != strstr (progname, "mesh"))
anonymity_level = 0;
else
anonymity_level = 1;
const char *config;
progname = argv[0];
- if (NULL != strstr (progname, "stream"))
- config = "test_gnunet_service_fs_p2p_stream.conf";
+ if (NULL != strstr (progname, "mesh"))
+ config = "test_gnunet_service_fs_p2p_mesh.conf";
else
config = "fs_test_lib_data.conf";
(void) GNUNET_TESTBED_test_run ("test-gnunet-service-fs-p2p",