diff options
Diffstat (limited to 'src/testing/test_testing_servicestartup.c')
-rw-r--r-- | src/testing/test_testing_servicestartup.c | 30 |
1 files changed, 15 insertions, 15 deletions
diff --git a/src/testing/test_testing_servicestartup.c b/src/testing/test_testing_servicestartup.c index e0cadfb06..18786ea86 100644 --- a/src/testing/test_testing_servicestartup.c +++ b/src/testing/test_testing_servicestartup.c | |||
@@ -11,7 +11,7 @@ | |||
11 | WITHOUT ANY WARRANTY; without even the implied warranty of | 11 | WITHOUT ANY WARRANTY; without even the implied warranty of |
12 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | 12 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
13 | Affero General Public License for more details. | 13 | Affero General Public License for more details. |
14 | 14 | ||
15 | You should have received a copy of the GNU Affero General Public License | 15 | You should have received a copy of the GNU Affero General Public License |
16 | along with this program. If not, see <http://www.gnu.org/licenses/>. | 16 | along with this program. If not, see <http://www.gnu.org/licenses/>. |
17 | 17 | ||
@@ -28,8 +28,8 @@ | |||
28 | #include "gnunet_testing_lib.h" | 28 | #include "gnunet_testing_lib.h" |
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,28 +45,28 @@ 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 | */ |
47 | static void | 47 | static void |
48 | test_run (void *cls, const struct GNUNET_CONFIGURATION_Handle *cfg, | 48 | test_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 | */ |
62 | int main (int argc, char *argv[]) | 62 | int 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 | ||