diff options
author | Christian Grothoff <christian@grothoff.org> | 2016-07-05 11:41:23 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2016-07-05 11:41:23 +0000 |
commit | 904c393e01da94dc9e842b1c3050eea7ae96b4f0 (patch) | |
tree | 0ea34440397241e464e2ffbd7ece78ee3026f9bf /src/util/test_service.c | |
parent | bed74ba115e1ff8501482dcb7f94fc0214e647b8 (diff) | |
download | gnunet-904c393e01da94dc9e842b1c3050eea7ae96b4f0.tar.gz gnunet-904c393e01da94dc9e842b1c3050eea7ae96b4f0.zip |
update tests to use new MQ API
Diffstat (limited to 'src/util/test_service.c')
-rw-r--r-- | src/util/test_service.c | 17 |
1 files changed, 12 insertions, 5 deletions
diff --git a/src/util/test_service.c b/src/util/test_service.c index efc765438..f340b724d 100644 --- a/src/util/test_service.c +++ b/src/util/test_service.c | |||
@@ -175,8 +175,10 @@ static void | |||
175 | runner6 (void *cls, struct GNUNET_SERVER_Handle *server, | 175 | runner6 (void *cls, struct GNUNET_SERVER_Handle *server, |
176 | const struct GNUNET_CONFIGURATION_Handle *cfg) | 176 | const struct GNUNET_CONFIGURATION_Handle *cfg) |
177 | { | 177 | { |
178 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "Initializing v6 service\n"); | 178 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, |
179 | GNUNET_SERVER_add_handlers (server, myhandlers); | 179 | "Initializing v6 service\n"); |
180 | GNUNET_SERVER_add_handlers (server, | ||
181 | myhandlers); | ||
180 | GNUNET_CLIENT_service_test ("test_service6", cfg, GNUNET_TIME_UNIT_SECONDS, | 182 | GNUNET_CLIENT_service_test ("test_service6", cfg, GNUNET_TIME_UNIT_SECONDS, |
181 | &ready6, (void *) cfg); | 183 | &ready6, (void *) cfg); |
182 | } | 184 | } |
@@ -206,13 +208,18 @@ check6 () | |||
206 | 208 | ||
207 | 209 | ||
208 | static void | 210 | static void |
209 | start_stop_main (void *cls, char *const *args, const char *cfgfile, | 211 | start_stop_main (void *cls, |
212 | char *const *args, | ||
213 | const char *cfgfile, | ||
210 | const struct GNUNET_CONFIGURATION_Handle *cfg) | 214 | const struct GNUNET_CONFIGURATION_Handle *cfg) |
211 | { | 215 | { |
212 | int *ret = cls; | 216 | int *ret = cls; |
213 | 217 | ||
214 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "Starting service using start method\n"); | 218 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, |
215 | sctx = GNUNET_SERVICE_start ("test_service", cfg, GNUNET_SERVICE_OPTION_NONE); | 219 | "Starting service using start method\n"); |
220 | sctx = GNUNET_SERVICE_start ("test_service", | ||
221 | cfg, | ||
222 | GNUNET_SERVICE_OPTION_NONE); | ||
216 | GNUNET_assert (NULL != sctx); | 223 | GNUNET_assert (NULL != sctx); |
217 | runner (cls, GNUNET_SERVICE_get_server (sctx), cfg); | 224 | runner (cls, GNUNET_SERVICE_get_server (sctx), cfg); |
218 | *ret = 0; | 225 | *ret = 0; |