mirror of
https://git.proxmox.com/git/fwupd
synced 2025-05-21 09:27:55 +00:00
trivial: Allow running generic vfuncs in the tests without a GModule
This makes it easier to set up test harness in the daemon self tests.
This commit is contained in:
parent
2adee9082b
commit
d3d96ccbb2
@ -868,6 +868,10 @@ fu_plugin_runner_device_generic (FuPlugin *plugin, FuDevice *device,
|
||||
if (!priv->enabled)
|
||||
return TRUE;
|
||||
|
||||
/* no object loaded */
|
||||
if (priv->module == NULL)
|
||||
return TRUE;
|
||||
|
||||
/* optional */
|
||||
g_module_symbol (priv->module, symbol_name, (gpointer *) &func);
|
||||
if (func == NULL)
|
||||
|
Loading…
Reference in New Issue
Block a user