aboutsummaryrefslogtreecommitdiff
path: root/src/util/test_program.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2011-08-15 21:54:06 +0000
committerChristian Grothoff <christian@grothoff.org>2011-08-15 21:54:06 +0000
commit5746309cb4be2073d550ad7a6885e918631dbc38 (patch)
tree89455bc4aadf977816b38df13f990372cd81d71a /src/util/test_program.c
parent6fd3e715cae09fa6e657c96f1c6f9711ee51f42f (diff)
downloadgnunet-5746309cb4be2073d550ad7a6885e918631dbc38.tar.gz
gnunet-5746309cb4be2073d550ad7a6885e918631dbc38.zip
indentation
Diffstat (limited to 'src/util/test_program.c')
-rw-r--r--src/util/test_program.c29
1 files changed, 10 insertions, 19 deletions
diff --git a/src/util/test_program.c b/src/util/test_program.c
index 9ea5b1510..faeb4e716 100644
--- a/src/util/test_program.c
+++ b/src/util/test_program.c
@@ -57,9 +57,8 @@ static struct GNUNET_GETOPT_CommandLineOption options4[] = {
57 */ 57 */
58 58
59static void 59static void
60runner (void *cls, 60runner (void *cls, char *const *args, const char *cfgfile,
61 char *const *args, 61 const struct GNUNET_CONFIGURATION_Handle *cfg)
62 const char *cfgfile, const struct GNUNET_CONFIGURATION_Handle *cfg)
63{ 62{
64 int *ok = cls; 63 int *ok = cls;
65 64
@@ -92,26 +91,18 @@ check ()
92 }; 91 };
93 92
94 GNUNET_assert (GNUNET_OK == 93 GNUNET_assert (GNUNET_OK ==
95 GNUNET_PROGRAM_run (7, 94 GNUNET_PROGRAM_run (7, argv, "test_program", "A test",
96 argv, 95 options1, &runner, &ok));
97 "test_program",
98 "A test", options1, &runner, &ok));
99 96
100 GNUNET_assert (GNUNET_OK == 97 GNUNET_assert (GNUNET_OK ==
101 GNUNET_PROGRAM_run (7, 98 GNUNET_PROGRAM_run (7, argv, "test_program", "A test",
102 argv, 99 options2, &runner, &ok));
103 "test_program",
104 "A test", options2, &runner, &ok));
105 GNUNET_assert (GNUNET_OK == 100 GNUNET_assert (GNUNET_OK ==
106 GNUNET_PROGRAM_run (7, 101 GNUNET_PROGRAM_run (7, argv, "test_program", "A test",
107 argv, 102 options3, &runner, &ok));
108 "test_program",
109 "A test", options3, &runner, &ok));
110 GNUNET_assert (GNUNET_OK == 103 GNUNET_assert (GNUNET_OK ==
111 GNUNET_PROGRAM_run (7, 104 GNUNET_PROGRAM_run (7, argv, "test_program", "A test",
112 argv, 105 options4, &runner, &ok));
113 "test_program",
114 "A test", options4, &runner, &ok));
115 106
116 return ok; 107 return ok;
117} 108}