From: Christian Grothoff Date: Thu, 5 May 2011 13:38:07 +0000 (+0000) Subject: fix X-Git-Tag: initial-import-from-subversion-38251~18542 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;ds=sidebyside;h=cd3441af8b97c9a61b52fb9909e07f3f96cbeb21;p=oweals%2Fgnunet.git fix --- diff --git a/src/datastore/test_datastore_api_management.c b/src/datastore/test_datastore_api_management.c index e80ecd607..9557da6ca 100644 --- a/src/datastore/test_datastore_api_management.c +++ b/src/datastore/test_datastore_api_management.c @@ -153,6 +153,14 @@ check_value (void *cls, struct CpsRunContext *crc = cls; int i; + if (NULL == key) + { + crc->phase = RP_GET_FAIL; + GNUNET_SCHEDULER_add_continuation (&run_continuation, + crc, + GNUNET_SCHEDULER_REASON_PREREQ_DONE); + return; + } i = crc->i; GNUNET_assert (size == get_size (i)); GNUNET_assert (0 == memcmp (data, get_data(i), size)); @@ -357,7 +365,7 @@ check () "-c", cfg_name, NULL); GNUNET_assert (NULL != proc); GNUNET_PROGRAM_run ((sizeof (argv) / sizeof (char *)) - 1, - argv, "test-datastore-api", "nohelp", + argv, "test-datastore-api-management", "nohelp", options, &run, NULL); sleep (1); /* give datastore chance to process 'DROP' request */ if (0 != GNUNET_OS_process_kill (proc, SIGTERM))