diff options
author | Christian Grothoff <christian@grothoff.org> | 2010-05-11 13:43:44 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2010-05-11 13:43:44 +0000 |
commit | bed8e0d389aacc368b3dd9704d355b284236fea3 (patch) | |
tree | 8fb1826c6f7b09fe09f4a0c456ea58699746db3b /src/util/test_service.c | |
parent | bd3ab1e9cafa730d9eaf2d1113467ea89de1916b (diff) | |
download | gnunet-bed8e0d389aacc368b3dd9704d355b284236fea3.tar.gz gnunet-bed8e0d389aacc368b3dd9704d355b284236fea3.zip |
fixes
Diffstat (limited to 'src/util/test_service.c')
-rw-r--r-- | src/util/test_service.c | 33 |
1 files changed, 0 insertions, 33 deletions
diff --git a/src/util/test_service.c b/src/util/test_service.c index c406a0f24..6148fa2cc 100644 --- a/src/util/test_service.c +++ b/src/util/test_service.c | |||
@@ -206,38 +206,6 @@ check6 () | |||
206 | } | 206 | } |
207 | 207 | ||
208 | 208 | ||
209 | /** | ||
210 | * Main method, starts scheduler with task1, | ||
211 | * checks that "ok" is correct at the end. | ||
212 | */ | ||
213 | static int | ||
214 | check6d () | ||
215 | { | ||
216 | ok = 1; | ||
217 | char *const argv[] = { | ||
218 | "test_service6", | ||
219 | "-c", | ||
220 | "test_service_data.conf", | ||
221 | "-L", | ||
222 | #if VERBOSE | ||
223 | "DEBUG", | ||
224 | #else | ||
225 | "WARNING", | ||
226 | #endif | ||
227 | "-d", | ||
228 | NULL | ||
229 | }; | ||
230 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "Starting V6 as daemon\n"); | ||
231 | GNUNET_assert (GNUNET_OK == | ||
232 | GNUNET_SERVICE_run (6, | ||
233 | argv, | ||
234 | "test_service6", | ||
235 | GNUNET_SERVICE_OPTION_NONE, | ||
236 | &runner6, &ok)); | ||
237 | GNUNET_break (0 == ok); | ||
238 | return ok; | ||
239 | } | ||
240 | |||
241 | 209 | ||
242 | static void | 210 | static void |
243 | start_stop_main (void *cls, | 211 | start_stop_main (void *cls, |
@@ -322,7 +290,6 @@ main (int argc, char *argv[]) | |||
322 | { | 290 | { |
323 | GNUNET_break (GNUNET_OK == GNUNET_NETWORK_socket_close (s)); | 291 | GNUNET_break (GNUNET_OK == GNUNET_NETWORK_socket_close (s)); |
324 | ret += check6 (); | 292 | ret += check6 (); |
325 | ret += check6d (); /* with daemonization */ | ||
326 | } | 293 | } |
327 | ret += check_start_stop (); | 294 | ret += check_start_stop (); |
328 | 295 | ||