diff options
author | Martin Schanzenbach <schanzen@gnunet.org> | 2022-12-10 00:25:37 +0900 |
---|---|---|
committer | Martin Schanzenbach <schanzen@gnunet.org> | 2022-12-10 00:25:37 +0900 |
commit | d4f9e18c6b93143f14b953c3d4fb8cc9c70cd9fd (patch) | |
tree | be40aedb8b1cb2f46bc56d74d7e32824fb284541 | |
parent | 7e725a7a8a9d4d8ff31c509aded6f69828a0cab2 (diff) | |
download | gnunet-d4f9e18c6b93143f14b953c3d4fb8cc9c70cd9fd.tar.gz gnunet-d4f9e18c6b93143f14b953c3d4fb8cc9c70cd9fd.zip |
-minor debugging
-rw-r--r-- | src/testing/testing_api_loop.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/testing/testing_api_loop.c b/src/testing/testing_api_loop.c index dac4e5deb..e8680fc13 100644 --- a/src/testing/testing_api_loop.c +++ b/src/testing/testing_api_loop.c | |||
@@ -25,6 +25,7 @@ | |||
25 | * @author Marcello Stanisci (GNU Taler testing) | 25 | * @author Marcello Stanisci (GNU Taler testing) |
26 | * @author t3sserakt | 26 | * @author t3sserakt |
27 | */ | 27 | */ |
28 | #include "gnunet_common.h" | ||
28 | #include "platform.h" | 29 | #include "platform.h" |
29 | #include "gnunet_util_lib.h" | 30 | #include "gnunet_util_lib.h" |
30 | #include "gnunet_testing_ng_lib.h" | 31 | #include "gnunet_testing_ng_lib.h" |
@@ -507,6 +508,7 @@ GNUNET_TESTING_run (const struct GNUNET_TESTING_Command *commands, | |||
507 | for (i = 0; NULL != commands[i].run; i++) | 508 | for (i = 0; NULL != commands[i].run; i++) |
508 | ; | 509 | ; |
509 | is->cmds_n = i + 1; | 510 | is->cmds_n = i + 1; |
511 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "Got %u commands\n", i); | ||
510 | is->commands = GNUNET_new_array (is->cmds_n, | 512 | is->commands = GNUNET_new_array (is->cmds_n, |
511 | struct GNUNET_TESTING_Command); | 513 | struct GNUNET_TESTING_Command); |
512 | memcpy (is->commands, | 514 | memcpy (is->commands, |
@@ -537,7 +539,7 @@ GNUNET_TESTING_command_new (void *cls, | |||
537 | .cleanup = cleanup, | 539 | .cleanup = cleanup, |
538 | .traits = traits | 540 | .traits = traits |
539 | }; | 541 | }; |
540 | memset (&cmd, 0, sizeof (cmd)); | 542 | memset (&cmd.label, 0, sizeof (cmd.label)); |
541 | if (NULL != label) | 543 | if (NULL != label) |
542 | strncpy (cmd.label, label, GNUNET_TESTING_CMD_MAX_LABEL_LENGTH); | 544 | strncpy (cmd.label, label, GNUNET_TESTING_CMD_MAX_LABEL_LENGTH); |
543 | 545 | ||