summaryrefslogtreecommitdiff
path: root/src/testing
diff options
context:
space:
mode:
Diffstat (limited to 'src/testing')
-rw-r--r--src/testing/Makefile.am3
-rw-r--r--src/testing/testing_api_cmd_netjail_start_testsystem.c11
-rw-r--r--src/testing/testing_api_cmd_netjail_stop_testsystem.c5
3 files changed, 11 insertions, 8 deletions
diff --git a/src/testing/Makefile.am b/src/testing/Makefile.am
index c01e9bdbd..6e0f29c4e 100644
--- a/src/testing/Makefile.am
+++ b/src/testing/Makefile.am
@@ -62,9 +62,6 @@ libgnunettesting_la_LIBADD = \
$(top_builddir)/src/arm/libgnunetarm.la \
$(top_builddir)/src/util/libgnunetutil.la \
$(LTLIBINTL)
-libgnunettesting_la_DEPENDENCIES = \
- $(top_builddir)/src/arm/libgnunetarm.la \
- $(top_builddir)/src/util/libgnunetutil.la
libgnunettesting_la_LDFLAGS = \
$(GN_LIB_LDFLAGS) \
-version-info 2:0:1
diff --git a/src/testing/testing_api_cmd_netjail_start_testsystem.c b/src/testing/testing_api_cmd_netjail_start_testsystem.c
index 01bac9b05..0fe0541b0 100644
--- a/src/testing/testing_api_cmd_netjail_start_testsystem.c
+++ b/src/testing/testing_api_cmd_netjail_start_testsystem.c
@@ -191,7 +191,7 @@ struct TestingSystemCount
};
/**
-* Code to clean up ressource this cmd used.
+* Code to clean up resource this cmd used.
*
* @param cls closure
* @param cmd current CMD being cleaned up.
@@ -276,6 +276,7 @@ GNUNET_TESTING_get_trait_helper_handles (const struct
(unsigned int) 0);
}
+
/**
* Offer messages received via testing cmd helper from trait
*
@@ -362,6 +363,7 @@ helper_mst (void *cls, const struct GNUNET_MessageHeader *message)
return GNUNET_OK;
}
+
/**
* Callback called if there was an exception during execution of the helper.
*
@@ -374,6 +376,7 @@ exp_cb (void *cls)
*ns->rv = 1;
}
+
/**
* Function to initialize a init message for the helper.
*
@@ -506,7 +509,8 @@ netjail_exec_run (void *cls,
struct GNUNET_CONFIGURATION_Handle *config =
GNUNET_CONFIGURATION_create ();
- for (int i = 1; i <= atoi (ns->global_n); i++) {
+ for (int i = 1; i <= atoi (ns->global_n); i++)
+ {
for (int j = 1; j <= atoi (ns->local_m); j++)
{
sprintf (str_n, "%d", i);
@@ -554,7 +558,8 @@ netjail_start_finish (void *cls,
if (ns->number_of_peers_started == total_number)
{
- for (int i = 1; i <= atoi (ns->global_n); i++) {
+ for (int i = 1; i <= atoi (ns->global_n); i++)
+ {
for (int j = 1; j <= atoi (ns->local_m); j++)
{
tbc = GNUNET_new (struct TestingSystemCount);
diff --git a/src/testing/testing_api_cmd_netjail_stop_testsystem.c b/src/testing/testing_api_cmd_netjail_stop_testsystem.c
index d6e733e05..0ae82a26a 100644
--- a/src/testing/testing_api_cmd_netjail_stop_testsystem.c
+++ b/src/testing/testing_api_cmd_netjail_stop_testsystem.c
@@ -49,7 +49,7 @@ struct StopHelperState
/**
-* Code to clean up ressource this cmd used.
+* Code to clean up resource this cmd used.
*
* @param cls closure
* @param cmd current CMD being cleaned up.
@@ -97,7 +97,8 @@ stop_testing_system_run (void *cls,
GNUNET_TESTING_get_trait_helper_handles (start_helper_cmd,
&helper);
- for (int i = 1; i <= atoi (shs->global_n); i++) {
+ for (int i = 1; i <= atoi (shs->global_n); i++)
+ {
for (int j = 1; j <= atoi (shs->local_m); j++)
{
GNUNET_HELPER_stop (helper[(i - 1) * atoi (shs->local_m) + j - 1],