diff options
-rw-r--r-- | src/fs/fs_test_lib.c | 6 | ||||
-rw-r--r-- | src/fs/fs_test_lib.h | 5 | ||||
-rw-r--r-- | src/fs/test_gnunet_service_fs_migration.c | 1 |
3 files changed, 9 insertions, 3 deletions
diff --git a/src/fs/fs_test_lib.c b/src/fs/fs_test_lib.c index 9f82608ed..aeb0bde06 100644 --- a/src/fs/fs_test_lib.c +++ b/src/fs/fs_test_lib.c | |||
@@ -328,12 +328,16 @@ start_timeout (void *cls, | |||
328 | struct StartContext *sctx = cls; | 328 | struct StartContext *sctx = cls; |
329 | unsigned int i; | 329 | unsigned int i; |
330 | 330 | ||
331 | GNUNET_TESTING_daemons_stop (sctx->group, GNUNET_TIME_relative_multiply(GNUNET_TIME_UNIT_SECONDS, 30), &shutdown_callback, NULL); | 331 | GNUNET_TESTING_daemons_stop (sctx->group, |
332 | GNUNET_TIME_relative_multiply(GNUNET_TIME_UNIT_SECONDS, 30), | ||
333 | &shutdown_callback, | ||
334 | NULL); | ||
332 | for (i=0;i<sctx->total;i++) | 335 | for (i=0;i<sctx->total;i++) |
333 | { | 336 | { |
334 | if (i < sctx->have) | 337 | if (i < sctx->have) |
335 | GNUNET_CONFIGURATION_destroy (sctx->daemons[i]->cfg); | 338 | GNUNET_CONFIGURATION_destroy (sctx->daemons[i]->cfg); |
336 | GNUNET_free (sctx->daemons[i]); | 339 | GNUNET_free (sctx->daemons[i]); |
340 | sctx->daemons[i] = NULL; | ||
337 | } | 341 | } |
338 | GNUNET_CONFIGURATION_destroy (sctx->cfg); | 342 | GNUNET_CONFIGURATION_destroy (sctx->cfg); |
339 | GNUNET_SCHEDULER_add_continuation (sctx->sched, | 343 | GNUNET_SCHEDULER_add_continuation (sctx->sched, |
diff --git a/src/fs/fs_test_lib.h b/src/fs/fs_test_lib.h index d25f594e3..2d8645cf9 100644 --- a/src/fs/fs_test_lib.h +++ b/src/fs/fs_test_lib.h | |||
@@ -48,7 +48,10 @@ struct GNUNET_FS_TestDaemon; | |||
48 | * @param total number of daemons to start | 48 | * @param total number of daemons to start |
49 | * @param daemons array of 'total' entries to be initialized | 49 | * @param daemons array of 'total' entries to be initialized |
50 | * (array must already be allocated, will be filled) | 50 | * (array must already be allocated, will be filled) |
51 | * @param cont function to call when done | 51 | * @param cont function to call when done; note that if 'cont' |
52 | * is called with reason "TIMEOUT", then starting the | ||
53 | * daemons has failed and the client MUST NOT call | ||
54 | * 'GNUNET_FS_TEST_daemons_stop'! | ||
52 | * @param cont_cls closure for cont | 55 | * @param cont_cls closure for cont |
53 | */ | 56 | */ |
54 | void | 57 | void |
diff --git a/src/fs/test_gnunet_service_fs_migration.c b/src/fs/test_gnunet_service_fs_migration.c index 89750b368..781132521 100644 --- a/src/fs/test_gnunet_service_fs_migration.c +++ b/src/fs/test_gnunet_service_fs_migration.c | |||
@@ -196,7 +196,6 @@ do_connect (void *cls, | |||
196 | fprintf (stderr, | 196 | fprintf (stderr, |
197 | "Daemons failed to start!\n"); | 197 | "Daemons failed to start!\n"); |
198 | GNUNET_break (0); | 198 | GNUNET_break (0); |
199 | GNUNET_FS_TEST_daemons_stop (sched, 2, daemons); | ||
200 | ok = 1; | 199 | ok = 1; |
201 | return; | 200 | return; |
202 | } | 201 | } |