diff options
author | Bart Polot <bart@net.in.tum.de> | 2012-12-20 15:07:40 +0000 |
---|---|---|
committer | Bart Polot <bart@net.in.tum.de> | 2012-12-20 15:07:40 +0000 |
commit | b9a62027b5c28b9ca12df120882acadaa8deaff5 (patch) | |
tree | 2598bb30899a6dc2b7962655c7345d07566b3a68 /src/mesh | |
parent | 6a958e216321d3eae44d9d0483d0944d000a4a05 (diff) | |
download | gnunet-b9a62027b5c28b9ca12df120882acadaa8deaff5.tar.gz gnunet-b9a62027b5c28b9ca12df120882acadaa8deaff5.zip |
- add new build for signal test
Diffstat (limited to 'src/mesh')
-rw-r--r-- | src/mesh/Makefile.am | 12 | ||||
-rw-r--r-- | src/mesh/test_mesh_small.c | 5 |
2 files changed, 16 insertions, 1 deletions
diff --git a/src/mesh/Makefile.am b/src/mesh/Makefile.am index e328608ed..f935e4d94 100644 --- a/src/mesh/Makefile.am +++ b/src/mesh/Makefile.am | |||
@@ -173,6 +173,7 @@ check_PROGRAMS = \ | |||
173 | test_mesh_regex \ | 173 | test_mesh_regex \ |
174 | test_mesh_small_unicast \ | 174 | test_mesh_small_unicast \ |
175 | test_mesh_small_multicast \ | 175 | test_mesh_small_multicast \ |
176 | test_mesh_small_signal \ | ||
176 | test_mesh_small_speed \ | 177 | test_mesh_small_speed \ |
177 | test_mesh_small_speed_nobuf \ | 178 | test_mesh_small_speed_nobuf \ |
178 | test_mesh_small_speed_min \ | 179 | test_mesh_small_speed_min \ |
@@ -290,6 +291,17 @@ test_mesh_small_multicast_DEPENDENCIES = \ | |||
290 | libgnunetmeshtest.a \ | 291 | libgnunetmeshtest.a \ |
291 | libgnunetmesh.la | 292 | libgnunetmesh.la |
292 | 293 | ||
294 | test_mesh_small_signal_SOURCES = \ | ||
295 | test_mesh_small.c | ||
296 | test_mesh_small_signal_LDADD = \ | ||
297 | $(top_builddir)/src/mesh/libgnunetmeshtest.a \ | ||
298 | $(top_builddir)/src/mesh/libgnunetmesh.la \ | ||
299 | $(top_builddir)/src/testbed/libgnunettestbed.la \ | ||
300 | $(top_builddir)/src/util/libgnunetutil.la | ||
301 | test_mesh_small_signal_DEPENDENCIES = \ | ||
302 | libgnunetmeshtest.a \ | ||
303 | libgnunetmesh.la | ||
304 | |||
293 | test_mesh_small_speed_ack_SOURCES = \ | 305 | test_mesh_small_speed_ack_SOURCES = \ |
294 | test_mesh_small.c | 306 | test_mesh_small.c |
295 | test_mesh_small_speed_ack_LDADD = \ | 307 | test_mesh_small_speed_ack_LDADD = \ |
diff --git a/src/mesh/test_mesh_small.c b/src/mesh/test_mesh_small.c index 12b49082f..deebea1d8 100644 --- a/src/mesh/test_mesh_small.c +++ b/src/mesh/test_mesh_small.c | |||
@@ -526,7 +526,10 @@ data_callback (void *cls, struct GNUNET_MESH_Tunnel *tunnel, void **tunnel_ctx, | |||
526 | return GNUNET_OK; | 526 | return GNUNET_OK; |
527 | show_end_data(); | 527 | show_end_data(); |
528 | } | 528 | } |
529 | GNUNET_MESH_tunnel_destroy (t); | 529 | if (test == P2P_SIGNAL) |
530 | GNUNET_MESH_tunnel_destroy (incoming_t); | ||
531 | else | ||
532 | GNUNET_MESH_tunnel_destroy (t); | ||
530 | t = NULL; | 533 | t = NULL; |
531 | } | 534 | } |
532 | 535 | ||