diff options
Diffstat (limited to 'src/datastore/perf_datastore_api_iterators.c')
-rw-r--r-- | src/datastore/perf_datastore_api_iterators.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/datastore/perf_datastore_api_iterators.c b/src/datastore/perf_datastore_api_iterators.c index 328cceb75..635fa1f28 100644 --- a/src/datastore/perf_datastore_api_iterators.c +++ b/src/datastore/perf_datastore_api_iterators.c | |||
@@ -52,6 +52,9 @@ static unsigned long long stored_ops; | |||
52 | static struct GNUNET_CONFIGURATION_Handle *cfg; | 52 | static struct GNUNET_CONFIGURATION_Handle *cfg; |
53 | 53 | ||
54 | static struct GNUNET_SCHEDULER_Handle *sched; | 54 | static struct GNUNET_SCHEDULER_Handle *sched; |
55 | |||
56 | static int ok; | ||
57 | |||
55 | 58 | ||
56 | static int | 59 | static int |
57 | putValue (struct GNUNET_DATASTORE_PluginFunctions * api, int i, int k) | 60 | putValue (struct GNUNET_DATASTORE_PluginFunctions * api, int i, int k) |
@@ -271,7 +274,6 @@ run (void *cls, | |||
271 | static int | 274 | static int |
272 | check () | 275 | check () |
273 | { | 276 | { |
274 | int ok = 1 + 2 + 4 + 8; | ||
275 | char *const argv[] = { "perf-datastore-api-iterators", | 277 | char *const argv[] = { "perf-datastore-api-iterators", |
276 | "-c", | 278 | "-c", |
277 | "test_datastore_api_data.conf", | 279 | "test_datastore_api_data.conf", |
@@ -285,7 +287,7 @@ check () | |||
285 | }; | 287 | }; |
286 | GNUNET_PROGRAM_run ((sizeof (argv) / sizeof (char *)) - 1, | 288 | GNUNET_PROGRAM_run ((sizeof (argv) / sizeof (char *)) - 1, |
287 | argv, "perf-datastore-api-iterators", "nohelp", | 289 | argv, "perf-datastore-api-iterators", "nohelp", |
288 | options, &run, &ok); | 290 | options, &run, NULL); |
289 | if (ok != 0) | 291 | if (ok != 0) |
290 | fprintf (stderr, "Missed some testcases: %u\n", ok); | 292 | fprintf (stderr, "Missed some testcases: %u\n", ok); |
291 | return ok; | 293 | return ok; |