aboutsummaryrefslogtreecommitdiff
path: root/src/mesh/test_mesh_path_api.c
diff options
context:
space:
mode:
authorBart Polot <bart@net.in.tum.de>2011-09-21 20:50:20 +0000
committerBart Polot <bart@net.in.tum.de>2011-09-21 20:50:20 +0000
commite163fb4e0712105b71ae508d441d06220eff5c6a (patch)
tree4397f92ecbebdbbfa1d987095f03e1e00504caf3 /src/mesh/test_mesh_path_api.c
parente73416feea2be995456c62f74b33e714501cdb33 (diff)
downloadgnunet-e163fb4e0712105b71ae508d441d06220eff5c6a.tar.gz
gnunet-e163fb4e0712105b71ae508d441d06220eff5c6a.zip
Added debug print of tree structure
Diffstat (limited to 'src/mesh/test_mesh_path_api.c')
-rw-r--r--src/mesh/test_mesh_path_api.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/mesh/test_mesh_path_api.c b/src/mesh/test_mesh_path_api.c
index 36eace93d..3d6a06857 100644
--- a/src/mesh/test_mesh_path_api.c
+++ b/src/mesh/test_mesh_path_api.c
@@ -233,15 +233,16 @@ main (int argc, char *argv[])
233 GNUNET_log(GNUNET_ERROR_TYPE_WARNING, "Retrieved peer wrong nchildren!\n"); 233 GNUNET_log(GNUNET_ERROR_TYPE_WARNING, "Retrieved peer wrong nchildren!\n");
234 failed++; 234 failed++;
235 } 235 }
236 path->length++;
237 path_destroy(path);
238 finish();
239 236
240 GNUNET_log(GNUNET_ERROR_TYPE_DEBUG, "test: Adding third path...\n"); 237 GNUNET_log(GNUNET_ERROR_TYPE_DEBUG, "test: Adding third path...\n");
241 path->length++; 238 path->length++;
242 path->peers[3] = 4; 239 path->peers[3] = 4;
243 tree_add_path(tree, path, &cb); 240 tree_add_path(tree, path, &cb);
244 241
242 path_destroy(path);
243 tree_debug(tree);
244 finish();
245
245 node = tree_find_peer(tree->root, 2); 246 node = tree_find_peer(tree->root, 2);
246 if (node->peer != 2) 247 if (node->peer != 2)
247 { 248 {