fix
authorChristian Grothoff <christian@grothoff.org>
Thu, 5 May 2011 13:38:07 +0000 (13:38 +0000)
committerChristian Grothoff <christian@grothoff.org>
Thu, 5 May 2011 13:38:07 +0000 (13:38 +0000)
src/datastore/test_datastore_api_management.c

index e80ecd6078077efbd3ab4fd9a7accba38de19def..9557da6ca179fa42d0def6c1e621e4258c4cc7e7 100644 (file)
@@ -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))