From cffbdaf5b9053fcf4266423b2167227523b082c4 Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Tue, 29 Sep 2015 07:52:23 +0000 Subject: report skipped tests, doxygen fixes --- src/datastore/test_plugin_datastore.c | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (limited to 'src/datastore') 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) char *libname; if (GNUNET_OK != - GNUNET_CONFIGURATION_get_value_string (cfg, "DATASTORE", "DATABASE", + GNUNET_CONFIGURATION_get_value_string (cfg, + "DATASTORE", + "DATABASE", &name)) { GNUNET_log (GNUNET_ERROR_TYPE_ERROR, - _("No `%s' specified for `%s' in configuration!\n"), "DATABASE", + _("No `%s' specified for `%s' in configuration!\n"), + "DATABASE", "DATASTORE"); return NULL; } @@ -363,6 +366,7 @@ load_plugin (const struct GNUNET_CONFIGURATION_Handle *cfg) FPRINTF (stderr, "Failed to load plugin `%s'!\n", name); GNUNET_free (libname); GNUNET_free (name); + ok = 77; /* mark test as skipped */ return NULL; } GNUNET_free (libname); @@ -420,7 +424,7 @@ main (int argc, char *argv[]) "test_plugin_datastore_data_%s.conf", plugin_name); GNUNET_PROGRAM_run ((sizeof (xargv) / sizeof (char *)) - 1, xargv, "test-plugin-datastore", "nohelp", options, &run, NULL); - if (0 != ok) + if ( (0 != ok) && (77 != ok) ) FPRINTF (stderr, "Missed some testcases: %u\n", ok); GNUNET_DISK_directory_remove (dir_name); return ok; -- cgit v1.2.3