diff options
author | Christian Grothoff <christian@grothoff.org> | 2015-09-29 07:52:23 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2015-09-29 07:52:23 +0000 |
commit | cffbdaf5b9053fcf4266423b2167227523b082c4 (patch) | |
tree | d801c9ed0558a81e2006553916cc1247c20e5cef /src/datastore | |
parent | 8fb11120e2ac1773d07f5df4e2e299637c752338 (diff) | |
download | gnunet-cffbdaf5b9053fcf4266423b2167227523b082c4.tar.gz gnunet-cffbdaf5b9053fcf4266423b2167227523b082c4.zip |
report skipped tests, doxygen fixes
Diffstat (limited to 'src/datastore')
-rw-r--r-- | src/datastore/test_plugin_datastore.c | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/src/datastore/test_plugin_datastore.c b/src/datastore/test_plugin_datastore.c index d60dc3cc2..a0e52416a 100644 --- a/src/datastore/test_plugin_datastore.c +++ b/src/datastore/test_plugin_datastore.c | |||
@@ -344,11 +344,14 @@ load_plugin (const struct GNUNET_CONFIGURATION_Handle *cfg) | |||
344 | char *libname; | 344 | char *libname; |
345 | 345 | ||
346 | if (GNUNET_OK != | 346 | if (GNUNET_OK != |
347 | GNUNET_CONFIGURATION_get_value_string (cfg, "DATASTORE", "DATABASE", | 347 | GNUNET_CONFIGURATION_get_value_string (cfg, |
348 | "DATASTORE", | ||
349 | "DATABASE", | ||
348 | &name)) | 350 | &name)) |
349 | { | 351 | { |
350 | GNUNET_log (GNUNET_ERROR_TYPE_ERROR, | 352 | GNUNET_log (GNUNET_ERROR_TYPE_ERROR, |
351 | _("No `%s' specified for `%s' in configuration!\n"), "DATABASE", | 353 | _("No `%s' specified for `%s' in configuration!\n"), |
354 | "DATABASE", | ||
352 | "DATASTORE"); | 355 | "DATASTORE"); |
353 | return NULL; | 356 | return NULL; |
354 | } | 357 | } |
@@ -363,6 +366,7 @@ load_plugin (const struct GNUNET_CONFIGURATION_Handle *cfg) | |||
363 | FPRINTF (stderr, "Failed to load plugin `%s'!\n", name); | 366 | FPRINTF (stderr, "Failed to load plugin `%s'!\n", name); |
364 | GNUNET_free (libname); | 367 | GNUNET_free (libname); |
365 | GNUNET_free (name); | 368 | GNUNET_free (name); |
369 | ok = 77; /* mark test as skipped */ | ||
366 | return NULL; | 370 | return NULL; |
367 | } | 371 | } |
368 | GNUNET_free (libname); | 372 | GNUNET_free (libname); |
@@ -420,7 +424,7 @@ main (int argc, char *argv[]) | |||
420 | "test_plugin_datastore_data_%s.conf", plugin_name); | 424 | "test_plugin_datastore_data_%s.conf", plugin_name); |
421 | GNUNET_PROGRAM_run ((sizeof (xargv) / sizeof (char *)) - 1, xargv, | 425 | GNUNET_PROGRAM_run ((sizeof (xargv) / sizeof (char *)) - 1, xargv, |
422 | "test-plugin-datastore", "nohelp", options, &run, NULL); | 426 | "test-plugin-datastore", "nohelp", options, &run, NULL); |
423 | if (0 != ok) | 427 | if ( (0 != ok) && (77 != ok) ) |
424 | FPRINTF (stderr, "Missed some testcases: %u\n", ok); | 428 | FPRINTF (stderr, "Missed some testcases: %u\n", ok); |
425 | GNUNET_DISK_directory_remove (dir_name); | 429 | GNUNET_DISK_directory_remove (dir_name); |
426 | return ok; | 430 | return ok; |