- plugin_set = bt_plugin_create_all_from_file(NON_EXISTING_PATH);
- ok(!plugin_set, "bt_plugin_create_all_from_file() fails with a non-existing file");
-
- plugin_set = bt_plugin_create_all_from_file(plugin_dir);
- ok(!plugin_set, "bt_plugin_create_all_from_file() fails with a directory");
-
- ok(!bt_plugin_create_all_from_file(NULL),
- "bt_plugin_create_all_from_file() handles NULL correctly");
- ok(!bt_plugin_create_all_from_dir(NULL, BT_FALSE),
- "bt_plugin_create_all_from_dir() handles NULL correctly");
- ok(!bt_plugin_get_name(NULL),
- "bt_plugin_get_name() handles NULL correctly");
- ok(!bt_plugin_get_description(NULL),
- "bt_plugin_get_description() handles NULL correctly");
- ok(bt_plugin_get_version(NULL, NULL, NULL, NULL, NULL) !=
- BT_PLUGIN_STATUS_OK,
- "bt_plugin_get_version() handles NULL correctly");
- ok(!bt_plugin_get_author(NULL),
- "bt_plugin_get_author() handles NULL correctly");
- ok(!bt_plugin_get_license(NULL),
- "bt_plugin_get_license() handles NULL correctly");
- ok(!bt_plugin_get_path(NULL),
- "bt_plugin_get_path() handles NULL correctly");
- ok(bt_plugin_get_component_class_count(NULL) < 0,
- "bt_plugin_get_component_class_count() handles NULL correctly");
- ok(!bt_plugin_get_component_class_by_index(NULL, 0),
- "bt_plugin_get_component_class_by_index() handles NULL correctly");
- ok(!bt_plugin_get_component_class_by_name_and_type(NULL, NULL, 0),
- "bt_plugin_get_component_class_by_name_and_type() handles NULL correctly");