mirror of
https://git.jabber.space/devs/cproof.git
synced 2026-07-26 13:56:21 +00:00
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:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user