diff options
Diffstat (limited to 'src/testing/test_testing_peerstartup.c')
-rw-r--r-- | src/testing/test_testing_peerstartup.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/testing/test_testing_peerstartup.c b/src/testing/test_testing_peerstartup.c index 3bae6a9ca..b871ed1e3 100644 --- a/src/testing/test_testing_peerstartup.c +++ b/src/testing/test_testing_peerstartup.c | |||
@@ -21,7 +21,7 @@ | |||
21 | /** | 21 | /** |
22 | * @file testing/test_testing_new_peerstartup.c | 22 | * @file testing/test_testing_new_peerstartup.c |
23 | * @brief test case for testing peer startup and shutdown using new testing | 23 | * @brief test case for testing peer startup and shutdown using new testing |
24 | * library | 24 | * library |
25 | * @author Sree Harsha Totakura | 25 | * @author Sree Harsha Totakura |
26 | */ | 26 | */ |
27 | 27 | ||
@@ -46,7 +46,7 @@ struct TestingContext | |||
46 | * The testing system | 46 | * The testing system |
47 | */ | 47 | */ |
48 | struct GNUNET_TESTING_System *system; | 48 | struct GNUNET_TESTING_System *system; |
49 | 49 | ||
50 | /** | 50 | /** |
51 | * The peer which has been started by the testing system | 51 | * The peer which has been started by the testing system |
52 | */ | 52 | */ |
@@ -69,7 +69,7 @@ static void | |||
69 | do_shutdown (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc) | 69 | do_shutdown (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc) |
70 | { | 70 | { |
71 | struct TestingContext *test_ctx = cls; | 71 | struct TestingContext *test_ctx = cls; |
72 | 72 | ||
73 | GNUNET_assert (NULL != test_ctx); | 73 | GNUNET_assert (NULL != test_ctx); |
74 | if (NULL != test_ctx->peer) | 74 | if (NULL != test_ctx->peer) |
75 | { | 75 | { |
@@ -96,14 +96,14 @@ run (void *cls, char *const *args, const char *cfgfile, | |||
96 | struct GNUNET_PeerIdentity id; | 96 | struct GNUNET_PeerIdentity id; |
97 | 97 | ||
98 | test_ctx = GNUNET_malloc (sizeof (struct TestingContext)); | 98 | test_ctx = GNUNET_malloc (sizeof (struct TestingContext)); |
99 | test_ctx->system = | 99 | test_ctx->system = |
100 | GNUNET_TESTING_system_create ("test-gnunet-testing", | 100 | GNUNET_TESTING_system_create ("test-gnunet-testing", |
101 | "127.0.0.1", NULL, NULL); | 101 | "127.0.0.1", NULL, NULL); |
102 | emsg = NULL; | 102 | emsg = NULL; |
103 | if (NULL == test_ctx->system) | 103 | if (NULL == test_ctx->system) |
104 | goto end; | 104 | goto end; |
105 | test_ctx->cfg = GNUNET_CONFIGURATION_dup (cfg); | 105 | test_ctx->cfg = GNUNET_CONFIGURATION_dup (cfg); |
106 | test_ctx->peer = | 106 | test_ctx->peer = |
107 | GNUNET_TESTING_peer_configure (test_ctx->system, | 107 | GNUNET_TESTING_peer_configure (test_ctx->system, |
108 | test_ctx->cfg, | 108 | test_ctx->cfg, |
109 | 0, &id, &emsg); | 109 | 0, &id, &emsg); |