aboutsummaryrefslogtreecommitdiff
path: root/src/testing/testing_api_cmd_netjail_start_testsystem.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/testing/testing_api_cmd_netjail_start_testsystem.c')
-rw-r--r--src/testing/testing_api_cmd_netjail_start_testsystem.c15
1 files changed, 8 insertions, 7 deletions
diff --git a/src/testing/testing_api_cmd_netjail_start_testsystem.c b/src/testing/testing_api_cmd_netjail_start_testsystem.c
index 62b628928..40a23c67c 100644
--- a/src/testing/testing_api_cmd_netjail_start_testsystem.c
+++ b/src/testing/testing_api_cmd_netjail_start_testsystem.c
@@ -207,6 +207,7 @@ struct TestingSystemCount
207 struct GNUNET_MessageHeader *msg; 207 struct GNUNET_MessageHeader *msg;
208}; 208};
209 209
210
210/** 211/**
211* Code to clean up resource this cmd used. 212* Code to clean up resource this cmd used.
212* 213*
@@ -216,7 +217,7 @@ static void
216netjail_exec_cleanup (void *cls) 217netjail_exec_cleanup (void *cls)
217{ 218{
218 struct NetJailState *ns = cls; 219 struct NetJailState *ns = cls;
219 GNUNET_TESTING_delete_barriers (ns->is); 220 TST_interpreter_delete_barriers (ns->is);
220 GNUNET_free (ns); 221 GNUNET_free (ns);
221} 222}
222 223
@@ -354,9 +355,9 @@ barrier_attached (struct NetJailState *ns, const struct
354 355
355 am = (struct CommandBarrierAttached *) message; 356 am = (struct CommandBarrierAttached *) message;
356 barrier_name = (const char *) &am[1]; 357 barrier_name = (const char *) &am[1];
357 barrier = GNUNET_TESTING_get_barrier (ns->is, barrier_name); 358 barrier = TST_interpreter_get_barrier (ns->is, barrier_name);
358 GNUNET_assert (NULL != barrier && GNUNET_NO == barrier->shadow); 359 GNUNET_assert (NULL != barrier && GNUNET_NO == barrier->shadow);
359 node = GNUNET_TESTING_barrier_get_node (barrier->nodes, am->node_number); 360 node = GNUNET_TESTING_barrier_get_node (barrier, am->node_number);
360 if (NULL == node) 361 if (NULL == node)
361 { 362 {
362 node = GNUNET_new (struct GNUNET_TESTING_NetjailNode); 363 node = GNUNET_new (struct GNUNET_TESTING_NetjailNode);
@@ -385,12 +386,12 @@ barrier_reached (struct NetJailState *ns, const struct
385 *) message; 386 *) message;
386 387
387 barrier_name = (const char *) &rm[1]; 388 barrier_name = (const char *) &rm[1];
388 barrier = GNUNET_TESTING_get_barrier (ns->is, barrier_name); 389 barrier = TST_interpreter_get_barrier (ns->is, barrier_name);
389 GNUNET_assert (NULL != barrier && GNUNET_NO == barrier->shadow); 390 GNUNET_assert (NULL != barrier && GNUNET_NO == barrier->shadow);
390 barrier->reached++; 391 barrier->reached++;
391 if (GNUNET_TESTING_can_barrier_advance (barrier)) 392 if (GNUNET_TESTING_can_barrier_advance (barrier))
392 { 393 {
393 GNUNET_TESTING_finish_attached_cmds (ns->is, barrier->name); 394 TST_interpreter_finish_attached_cmds (ns->is, barrier->name);
394 } 395 }
395} 396}
396 397
@@ -702,12 +703,12 @@ start_helper (struct NetJailState *ns,
702 703
703 for (pos = barriers->head; NULL != pos; pos = pos->next) 704 for (pos = barriers->head; NULL != pos; pos = pos->next)
704 { 705 {
705 barrier = GNUNET_TESTING_get_barrier (ns->is, pos->barrier_name); 706 barrier = TST_interpreter_get_barrier (ns->is, pos->barrier_name);
706 if (NULL == barrier || GNUNET_YES == barrier->shadow) 707 if (NULL == barrier || GNUNET_YES == barrier->shadow)
707 { 708 {
708 barrier = GNUNET_new (struct GNUNET_TESTING_Barrier); 709 barrier = GNUNET_new (struct GNUNET_TESTING_Barrier);
709 barrier->name = pos->barrier_name; 710 barrier->name = pos->barrier_name;
710 GNUNET_TESTING_interpreter_add_barrier (ns->is, barrier); 711 TST_interpreter_add_barrier (ns->is, barrier);
711 712
712 barrier->nodes = GNUNET_CONTAINER_multishortmap_create (1,GNUNET_NO); 713 barrier->nodes = GNUNET_CONTAINER_multishortmap_create (1,GNUNET_NO);
713 } 714 }