tests: update unit tests

Not really a best practise. They should have been run before each commit
and updated accordingly. Next time..
This commit is contained in:
Michael Vetter
2026-02-27 23:01:14 +01:00
parent 02cde29b65
commit 36b15ec6d5
12 changed files with 215 additions and 215 deletions

View File

@@ -20,15 +20,15 @@ returns_commands(void** state)
{
plugins_init();
PluginCommand* command1 = g_new0(PluginCommand, 1);
command1->command_name = strdup("command1");
command1->command_name = g_strdup("command1");
callbacks_add_command("plugin1", command1);
PluginCommand* command2 = g_new0(PluginCommand, 1);
command2->command_name = strdup("command2");
command2->command_name = g_strdup("command2");
callbacks_add_command("plugin1", command2);
PluginCommand* command3 = g_new0(PluginCommand, 1);
command3->command_name = strdup("command3");
command3->command_name = g_strdup("command3");
callbacks_add_command("plugin2", command3);
GList* names = plugins_get_command_names();