X-Git-Url: https://git.efficios.com/?a=blobdiff_plain;f=tests%2Flib%2Fplugin.c;h=74c185c5fd94eaac1bd4a4f17b9dbee656a60982;hb=4175c1d52f91f7e5d66a12135ad8ec6ec736a539;hp=ff287c1c100a945bf14b7dc8cf9898b1cfab7349;hpb=76276a81e72d967979674fdc0a646b42d8d6033e;p=babeltrace.git diff --git a/tests/lib/plugin.c b/tests/lib/plugin.c index ff287c1c..74c185c5 100644 --- a/tests/lib/plugin.c +++ b/tests/lib/plugin.c @@ -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");