summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2011-05-05 13:38:07 +0000
committerChristian Grothoff <christian@grothoff.org>2011-05-05 13:38:07 +0000
commitcd3441af8b97c9a61b52fb9909e07f3f96cbeb21 (patch)
tree50b0854bcd099d3a0dcaac99cc145cc1a0f290c3 /src
parenta62cd21e71caa9c19078fa89364dc819536f6ffd (diff)
fix
Diffstat (limited to 'src')
-rw-r--r--src/datastore/test_datastore_api_management.c10
1 files changed, 9 insertions, 1 deletions
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))