aboutsummaryrefslogtreecommitdiff
path: root/src/testing/test_testing_servicestartup.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/testing/test_testing_servicestartup.c')
-rw-r--r--src/testing/test_testing_servicestartup.c27
1 files changed, 13 insertions, 14 deletions
diff --git a/src/testing/test_testing_servicestartup.c b/src/testing/test_testing_servicestartup.c
index 18786ea86..d25c16167 100644
--- a/src/testing/test_testing_servicestartup.c
+++ b/src/testing/test_testing_servicestartup.c
@@ -29,7 +29,7 @@
29 29
30 30
31#define LOG(kind, ...) \ 31#define LOG(kind, ...) \
32 GNUNET_log(kind, __VA_ARGS__) 32 GNUNET_log (kind, __VA_ARGS__)
33 33
34 34
35/** 35/**
@@ -45,30 +45,29 @@ static int test_success;
45 * @param cfg the configuration with which the current testing service is run 45 * @param cfg the configuration with which the current testing service is run
46 */ 46 */
47static void 47static void
48test_run(void *cls, const struct GNUNET_CONFIGURATION_Handle *cfg, 48test_run (void *cls, const struct GNUNET_CONFIGURATION_Handle *cfg,
49 struct GNUNET_TESTING_Peer *peer) 49 struct GNUNET_TESTING_Peer *peer)
50{ 50{
51 GNUNET_assert(NULL == cls); 51 GNUNET_assert (NULL == cls);
52 GNUNET_assert(NULL != cfg); 52 GNUNET_assert (NULL != cfg);
53 LOG(GNUNET_ERROR_TYPE_DEBUG, "Service arm started successfully\n"); 53 LOG (GNUNET_ERROR_TYPE_DEBUG, "Service arm started successfully\n");
54 test_success = GNUNET_YES; 54 test_success = GNUNET_YES;
55 GNUNET_SCHEDULER_shutdown(); 55 GNUNET_SCHEDULER_shutdown ();
56} 56}
57 57
58 58
59/** 59/**
60 * The main point of execution 60 * The main point of execution
61 */ 61 */
62int main(int argc, char *argv[]) 62int main (int argc, char *argv[])
63{ 63{
64 test_success = GNUNET_NO; 64 test_success = GNUNET_NO;
65 GNUNET_assert(0 == GNUNET_TESTING_service_run("test-testing-servicestartup", 65 GNUNET_assert (0 == GNUNET_TESTING_service_run ("test-testing-servicestartup",
66 "arm", 66 "arm",
67 "test_testing_defaults.conf", 67 "test_testing_defaults.conf",
68 &test_run, 68 &test_run,
69 NULL)); 69 NULL));
70 return (GNUNET_YES == test_success) ? 0 : 1; 70 return (GNUNET_YES == test_success) ? 0 : 1;
71} 71}
72 72
73/* end of test_testing_servicestartup.c */ 73/* end of test_testing_servicestartup.c */
74