Skip test when wire-plugin is not loaded.
This commit is contained in:
parent
368f3a9a66
commit
d3f73936ae
@ -51,7 +51,7 @@ main (int argc,
|
|||||||
struct GNUNET_CONFIGURATION_Handle *cfg;
|
struct GNUNET_CONFIGURATION_Handle *cfg;
|
||||||
struct TALER_WIRE_Plugin *plugin;
|
struct TALER_WIRE_Plugin *plugin;
|
||||||
|
|
||||||
GNUNET_log_setup ("test-sepa-wireformats",
|
GNUNET_log_setup ("test-ebics-wireformats",
|
||||||
"WARNING",
|
"WARNING",
|
||||||
NULL);
|
NULL);
|
||||||
cfg = GNUNET_CONFIGURATION_create ();
|
cfg = GNUNET_CONFIGURATION_create ();
|
||||||
@ -61,7 +61,12 @@ main (int argc,
|
|||||||
"EUR");
|
"EUR");
|
||||||
plugin = TALER_WIRE_plugin_load (cfg,
|
plugin = TALER_WIRE_plugin_load (cfg,
|
||||||
"ebics");
|
"ebics");
|
||||||
GNUNET_assert (NULL != plugin);
|
if (NULL == plugin)
|
||||||
|
{
|
||||||
|
TALER_LOG_ERROR ("Could not load the ebics plugin\n");
|
||||||
|
return 77;
|
||||||
|
}
|
||||||
|
|
||||||
GNUNET_assert (TALER_EC_NONE !=
|
GNUNET_assert (TALER_EC_NONE !=
|
||||||
plugin->wire_validate (plugin->cls,
|
plugin->wire_validate (plugin->cls,
|
||||||
unsupported_wire_str));
|
unsupported_wire_str));
|
||||||
|
@ -164,7 +164,13 @@ main (int argc,
|
|||||||
test->currency);
|
test->currency);
|
||||||
plugin = TALER_WIRE_plugin_load (cfg,
|
plugin = TALER_WIRE_plugin_load (cfg,
|
||||||
test->plugin_name);
|
test->plugin_name);
|
||||||
GNUNET_assert (NULL != plugin);
|
if (NULL == plugin)
|
||||||
|
{
|
||||||
|
TALER_LOG_ERROR ("Could not load plugin `%s'\n",
|
||||||
|
test->plugin_name);
|
||||||
|
return 77;
|
||||||
|
}
|
||||||
|
|
||||||
ret = run_test (test, plugin);
|
ret = run_test (test, plugin);
|
||||||
TALER_WIRE_plugin_unload (plugin);
|
TALER_WIRE_plugin_unload (plugin);
|
||||||
if (GNUNET_OK != ret)
|
if (GNUNET_OK != ret)
|
||||||
|
@ -72,7 +72,7 @@ static struct WirePlugin *wp_tail;
|
|||||||
*
|
*
|
||||||
* @param cfg configuration to use
|
* @param cfg configuration to use
|
||||||
* @param plugin_name name of the plugin to load
|
* @param plugin_name name of the plugin to load
|
||||||
* @return #GNUNET_OK on success
|
* @return the plugin object pointer, or NULL upon errors.
|
||||||
*/
|
*/
|
||||||
struct TALER_WIRE_Plugin *
|
struct TALER_WIRE_Plugin *
|
||||||
TALER_WIRE_plugin_load (const struct GNUNET_CONFIGURATION_Handle *cfg,
|
TALER_WIRE_plugin_load (const struct GNUNET_CONFIGURATION_Handle *cfg,
|
||||||
|
Loading…
Reference in New Issue
Block a user