aboutsummaryrefslogtreecommitdiff
path: root/src/testing/testing_api_cmd_netjail_start_testsystem_v2.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2021-10-08 21:50:34 +0200
committerChristian Grothoff <christian@grothoff.org>2021-10-08 21:50:34 +0200
commitbd8f79f628b254f4f02c08284ba65d23486d6127 (patch)
tree8729cfd715433db91b0fbb72d0aac164082b7f24 /src/testing/testing_api_cmd_netjail_start_testsystem_v2.c
parent6ef071b8ccea72da6a9e1eee6483c326b6ebc082 (diff)
downloadgnunet-bd8f79f628b254f4f02c08284ba65d23486d6127.tar.gz
gnunet-bd8f79f628b254f4f02c08284ba65d23486d6127.zip
-clean up testing-NG finish logic
Diffstat (limited to 'src/testing/testing_api_cmd_netjail_start_testsystem_v2.c')
-rw-r--r--src/testing/testing_api_cmd_netjail_start_testsystem_v2.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/testing/testing_api_cmd_netjail_start_testsystem_v2.c b/src/testing/testing_api_cmd_netjail_start_testsystem_v2.c
index bb9421aa7..d319b73b4 100644
--- a/src/testing/testing_api_cmd_netjail_start_testsystem_v2.c
+++ b/src/testing/testing_api_cmd_netjail_start_testsystem_v2.c
@@ -62,6 +62,11 @@ struct HelperMessage
62struct NetJailState 62struct NetJailState
63{ 63{
64 /** 64 /**
65 * Context for our asynchronous completion.
66 */
67 struct GNUNET_TESTING_AsyncContext ac;
68
69 /**
65 * The complete topology information. 70 * The complete topology information.
66 */ 71 */
67 struct GNUNET_TESTING_NetjailTopology *topology; 72 struct GNUNET_TESTING_NetjailTopology *topology;
@@ -637,6 +642,7 @@ send_all_peers_started (unsigned int i, unsigned int j, struct NetJailState *ns)
637 * 3. Did all peers finished the test case. In this case interpreter_next will be called. 642 * 3. Did all peers finished the test case. In this case interpreter_next will be called.
638 * 643 *
639 */ 644 */
645// FIXME: must change completely!
640static int 646static int
641netjail_start_finish (void *cls, 647netjail_start_finish (void *cls,
642 GNUNET_SCHEDULER_TaskCallback cont, 648 GNUNET_SCHEDULER_TaskCallback cont,
@@ -708,7 +714,7 @@ GNUNET_TESTING_cmd_netjail_start_testing_system_v2 (const char *label,
708 .cls = ns, 714 .cls = ns,
709 .label = label, 715 .label = label,
710 .run = &netjail_exec_run, 716 .run = &netjail_exec_run,
711 .finish = &netjail_start_finish, 717 .ac = &ns->ac,
712 .cleanup = &netjail_exec_cleanup, 718 .cleanup = &netjail_exec_cleanup,
713 .traits = &netjail_exec_traits 719 .traits = &netjail_exec_traits
714 }; 720 };