diff options
author | Bart Polot <bart@net.in.tum.de> | 2011-09-23 10:17:48 +0000 |
---|---|---|
committer | Bart Polot <bart@net.in.tum.de> | 2011-09-23 10:17:48 +0000 |
commit | a44aa9923dd14613116939e659817f985cb89ef5 (patch) | |
tree | a1ceb1826bf2dbc02db9ddb2bc0f12a9d03a4d89 /src/mesh/test_mesh_path_api.c | |
parent | 17e4c95ee4c555db7ab3ab9c57412b7866ee5411 (diff) | |
download | gnunet-a44aa9923dd14613116939e659817f985cb89ef5.tar.gz gnunet-a44aa9923dd14613116939e659817f985cb89ef5.zip |
Fixed bugs and completed API
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 | } |