aboutsummaryrefslogtreecommitdiff
path: root/src/datastore/test_datastore_api.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2009-11-04 14:10:32 +0000
committerChristian Grothoff <christian@grothoff.org>2009-11-04 14:10:32 +0000
commitcf45b8dff29c366d51aa2e6ea6a64b99b514b9c9 (patch)
tree5cb37c041743daff5af528dbbe24f5c563ce702e /src/datastore/test_datastore_api.c
parentb91546a3de767292e6472c6b1927480adba43d88 (diff)
downloadgnunet-cf45b8dff29c366d51aa2e6ea6a64b99b514b9c9.tar.gz
gnunet-cf45b8dff29c366d51aa2e6ea6a64b99b514b9c9.zip
bugfixes and redesigning scheduler API
Diffstat (limited to 'src/datastore/test_datastore_api.c')
-rw-r--r--src/datastore/test_datastore_api.c9
1 files changed, 0 insertions, 9 deletions
diff --git a/src/datastore/test_datastore_api.c b/src/datastore/test_datastore_api.c
index 605cb042d..5d4443cbe 100644
--- a/src/datastore/test_datastore_api.c
+++ b/src/datastore/test_datastore_api.c
@@ -145,7 +145,6 @@ check_success (void *cls,
145 GNUNET_free_non_null (crc->data); 145 GNUNET_free_non_null (crc->data);
146 crc->data = NULL; 146 crc->data = NULL;
147 GNUNET_SCHEDULER_add_continuation (crc->sched, 147 GNUNET_SCHEDULER_add_continuation (crc->sched,
148 GNUNET_NO,
149 &run_continuation, 148 &run_continuation,
150 crc, 149 crc,
151 GNUNET_SCHEDULER_REASON_PREREQ_DONE); 150 GNUNET_SCHEDULER_REASON_PREREQ_DONE);
@@ -164,7 +163,6 @@ get_reserved (void *cls,
164 GNUNET_assert (0 < success); 163 GNUNET_assert (0 < success);
165 crc->rid = success; 164 crc->rid = success;
166 GNUNET_SCHEDULER_add_continuation (crc->sched, 165 GNUNET_SCHEDULER_add_continuation (crc->sched,
167 GNUNET_NO,
168 &run_continuation, 166 &run_continuation,
169 crc, 167 crc,
170 GNUNET_SCHEDULER_REASON_PREREQ_DONE); 168 GNUNET_SCHEDULER_REASON_PREREQ_DONE);
@@ -193,7 +191,6 @@ check_value (void *cls,
193 crc->i = ITERATIONS; 191 crc->i = ITERATIONS;
194 } 192 }
195 GNUNET_SCHEDULER_add_continuation (crc->sched, 193 GNUNET_SCHEDULER_add_continuation (crc->sched,
196 GNUNET_NO,
197 &run_continuation, 194 &run_continuation,
198 crc, 195 crc,
199 GNUNET_SCHEDULER_REASON_PREREQ_DONE); 196 GNUNET_SCHEDULER_REASON_PREREQ_DONE);
@@ -226,7 +223,6 @@ delete_value (void *cls,
226 { 223 {
227 crc->phase = RP_DO_DEL; 224 crc->phase = RP_DO_DEL;
228 GNUNET_SCHEDULER_add_continuation (crc->sched, 225 GNUNET_SCHEDULER_add_continuation (crc->sched,
229 GNUNET_NO,
230 &run_continuation, 226 &run_continuation,
231 crc, 227 crc,
232 GNUNET_SCHEDULER_REASON_PREREQ_DONE); 228 GNUNET_SCHEDULER_REASON_PREREQ_DONE);
@@ -259,7 +255,6 @@ check_nothing (void *cls,
259 crc->phase = RP_RESERVE; 255 crc->phase = RP_RESERVE;
260 } 256 }
261 GNUNET_SCHEDULER_add_continuation (crc->sched, 257 GNUNET_SCHEDULER_add_continuation (crc->sched,
262 GNUNET_NO,
263 &run_continuation, 258 &run_continuation,
264 crc, 259 crc,
265 GNUNET_SCHEDULER_REASON_PREREQ_DONE); 260 GNUNET_SCHEDULER_REASON_PREREQ_DONE);
@@ -284,7 +279,6 @@ check_multiple (void *cls,
284 GNUNET_assert (crc->phase == RP_GET_MULTIPLE_DONE); 279 GNUNET_assert (crc->phase == RP_GET_MULTIPLE_DONE);
285 crc->phase = RP_UPDATE; 280 crc->phase = RP_UPDATE;
286 GNUNET_SCHEDULER_add_continuation (crc->sched, 281 GNUNET_SCHEDULER_add_continuation (crc->sched,
287 GNUNET_NO,
288 &run_continuation, 282 &run_continuation,
289 crc, 283 crc,
290 GNUNET_SCHEDULER_REASON_PREREQ_DONE); 284 GNUNET_SCHEDULER_REASON_PREREQ_DONE);
@@ -315,7 +309,6 @@ check_update (void *cls,
315 GNUNET_assert (crc->phase == RP_UPDATE_DONE); 309 GNUNET_assert (crc->phase == RP_UPDATE_DONE);
316 crc->phase = RP_DONE; 310 crc->phase = RP_DONE;
317 GNUNET_SCHEDULER_add_continuation (crc->sched, 311 GNUNET_SCHEDULER_add_continuation (crc->sched,
318 GNUNET_NO,
319 &run_continuation, 312 &run_continuation,
320 crc, 313 crc,
321 GNUNET_SCHEDULER_REASON_PREREQ_DONE); 314 GNUNET_SCHEDULER_REASON_PREREQ_DONE);
@@ -542,7 +535,6 @@ run (void *cls,
542 now = GNUNET_TIME_absolute_get (); 535 now = GNUNET_TIME_absolute_get ();
543 datastore = GNUNET_DATASTORE_connect (cfg, sched); 536 datastore = GNUNET_DATASTORE_connect (cfg, sched);
544 GNUNET_SCHEDULER_add_continuation (crc->sched, 537 GNUNET_SCHEDULER_add_continuation (crc->sched,
545 GNUNET_NO,
546 &run_continuation, 538 &run_continuation,
547 crc, 539 crc,
548 GNUNET_SCHEDULER_REASON_PREREQ_DONE); 540 GNUNET_SCHEDULER_REASON_PREREQ_DONE);
@@ -572,7 +564,6 @@ check ()
572 "-L", "DEBUG", 564 "-L", "DEBUG",
573#endif 565#endif
574 "-c", "test_datastore_api_data.conf", NULL); 566 "-c", "test_datastore_api_data.conf", NULL);
575 sleep (1);
576 GNUNET_PROGRAM_run ((sizeof (argv) / sizeof (char *)) - 1, 567 GNUNET_PROGRAM_run ((sizeof (argv) / sizeof (char *)) - 1,
577 argv, "test-datastore-api", "nohelp", 568 argv, "test-datastore-api", "nohelp",
578 options, &run, NULL); 569 options, &run, NULL);