aboutsummaryrefslogtreecommitdiff
path: root/src/datastore/perf_datastore_api_iterators.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/datastore/perf_datastore_api_iterators.c')
-rw-r--r--src/datastore/perf_datastore_api_iterators.c6
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;
52static struct GNUNET_CONFIGURATION_Handle *cfg; 52static struct GNUNET_CONFIGURATION_Handle *cfg;
53 53
54static struct GNUNET_SCHEDULER_Handle *sched; 54static struct GNUNET_SCHEDULER_Handle *sched;
55
56static int ok;
57
55 58
56static int 59static int
57putValue (struct GNUNET_DATASTORE_PluginFunctions * api, int i, int k) 60putValue (struct GNUNET_DATASTORE_PluginFunctions * api, int i, int k)
@@ -271,7 +274,6 @@ run (void *cls,
271static int 274static int
272check () 275check ()
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;