diff options
Diffstat (limited to 'src/mesh/test_mesh_path_api.c')
-rw-r--r-- | src/mesh/test_mesh_path_api.c | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/src/mesh/test_mesh_path_api.c b/src/mesh/test_mesh_path_api.c index a397752e9..337ce35de 100644 --- a/src/mesh/test_mesh_path_api.c +++ b/src/mesh/test_mesh_path_api.c | |||
@@ -57,7 +57,7 @@ finish(void) | |||
57 | { | 57 | { |
58 | unsigned int i; | 58 | unsigned int i; |
59 | 59 | ||
60 | GNUNET_log(GNUNET_ERROR_TYPE_DEBUG, "test: Finishing...\n"); | 60 | GNUNET_log(GNUNET_ERROR_TYPE_DEBUG, "test: Finishing...\n"); |
61 | for (i = 0; i < 10; i++) | 61 | for (i = 0; i < 10; i++) |
62 | { | 62 | { |
63 | GNUNET_free(pi[i]); | 63 | GNUNET_free(pi[i]); |
@@ -340,11 +340,7 @@ main (int argc, char *argv[]) | |||
340 | { | 340 | { |
341 | GNUNET_log(GNUNET_ERROR_TYPE_WARNING, "%u callbacks missed!\n", cb_call); | 341 | GNUNET_log(GNUNET_ERROR_TYPE_WARNING, "%u callbacks missed!\n", cb_call); |
342 | failed++; | 342 | failed++; |
343 | } | 343 | } |
344 | |||
345 | path_destroy(path); | ||
346 | finish(); | ||
347 | |||
348 | node = tree_find_peer(tree->root, 2); | 344 | node = tree_find_peer(tree->root, 2); |
349 | if (node->peer != 2) | 345 | if (node->peer != 2) |
350 | { | 346 | { |
@@ -394,6 +390,9 @@ main (int argc, char *argv[]) | |||
394 | GNUNET_log (GNUNET_ERROR_TYPE_WARNING, "%u tests failed\n", failed); | 390 | GNUNET_log (GNUNET_ERROR_TYPE_WARNING, "%u tests failed\n", failed); |
395 | return 1; | 391 | return 1; |
396 | } | 392 | } |
397 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "test ok\n"); | 393 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "test: OK\n"); |
394 | path_destroy(path); | ||
395 | finish(); | ||
396 | |||
398 | return 0; | 397 | return 0; |
399 | } | 398 | } |