aboutsummaryrefslogtreecommitdiff
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
parenta62cd21e71caa9c19078fa89364dc819536f6ffd (diff)
downloadgnunet-cd3441af8b97c9a61b52fb9909e07f3f96cbeb21.tar.gz
gnunet-cd3441af8b97c9a61b52fb9909e07f3f96cbeb21.zip
fix
-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,
153 struct CpsRunContext *crc = cls; 153 struct CpsRunContext *crc = cls;
154 int i; 154 int i;
155 155
156 if (NULL == key)
157 {
158 crc->phase = RP_GET_FAIL;
159 GNUNET_SCHEDULER_add_continuation (&run_continuation,
160 crc,
161 GNUNET_SCHEDULER_REASON_PREREQ_DONE);
162 return;
163 }
156 i = crc->i; 164 i = crc->i;
157 GNUNET_assert (size == get_size (i)); 165 GNUNET_assert (size == get_size (i));
158 GNUNET_assert (0 == memcmp (data, get_data(i), size)); 166 GNUNET_assert (0 == memcmp (data, get_data(i), size));
@@ -357,7 +365,7 @@ check ()
357 "-c", cfg_name, NULL); 365 "-c", cfg_name, NULL);
358 GNUNET_assert (NULL != proc); 366 GNUNET_assert (NULL != proc);
359 GNUNET_PROGRAM_run ((sizeof (argv) / sizeof (char *)) - 1, 367 GNUNET_PROGRAM_run ((sizeof (argv) / sizeof (char *)) - 1,
360 argv, "test-datastore-api", "nohelp", 368 argv, "test-datastore-api-management", "nohelp",
361 options, &run, NULL); 369 options, &run, NULL);
362 sleep (1); /* give datastore chance to process 'DROP' request */ 370 sleep (1); /* give datastore chance to process 'DROP' request */
363 if (0 != GNUNET_OS_process_kill (proc, SIGTERM)) 371 if (0 != GNUNET_OS_process_kill (proc, SIGTERM))