Rename `init` methods to `initialize`
[babeltrace.git] / tests / lib / plugin.c
index a5bbe0c761613a3c2ab7901c23dbe0ea039b7b20..74c185c5fd94eaac1bd4a4f17b9dbee656a60982 100644 (file)
@@ -41,7 +41,7 @@ static int check_env_var(const char *name)
 
 static void reset_test_plugin_env_vars(void)
 {
-       g_setenv("BT_TEST_PLUGIN_INIT_CALLED", "0", 1);
+       g_setenv("BT_TEST_PLUGIN_INITIALIZE_CALLED", "0", 1);
        g_setenv("BT_TEST_PLUGIN_EXIT_CALLED", "0", 1);
 }
 
@@ -79,7 +79,7 @@ static void test_minimal(const char *plugin_dir)
                "bt_plugin_find_all_from_file() succeeds with a valid file");
        ok(plugin_set,
                "bt_plugin_find_all_from_file() returns a plugin set");
-       ok(check_env_var("BT_TEST_PLUGIN_INIT_CALLED") == 1,
+       ok(check_env_var("BT_TEST_PLUGIN_INITIALIZE_CALLED") == 1,
                "plugin's initialization function is called during bt_plugin_find_all_from_file()");
        ok(bt_plugin_set_get_plugin_count(plugin_set) == 1,
                "bt_plugin_find_all_from_file() returns the expected number of plugins");
@@ -186,7 +186,7 @@ static void test_sfs(const char *plugin_dir)
        BT_ASSERT(query_exec);
        ret = bt_query_executor_query(query_exec, &results);
        ok(ret == 0 && results, "bt_query_executor_query() succeeds");
-       BT_ASSERT(bt_value_is_array(results) && bt_value_array_get_size(results) == 2);
+       BT_ASSERT(bt_value_is_array(results) && bt_value_array_get_length(results) == 2);
        object = bt_value_array_borrow_element_by_index_const(results, 0);
        BT_ASSERT(object && bt_value_is_string(object));
        object_str = bt_value_string_get(object);
This page took 0.028677 seconds and 4 git commands to generate.