X-Git-Url: http://git.efficios.com/?a=blobdiff_plain;f=tests%2Flib%2Ftest_plugin.c;h=a22d2b27017f433c9c2d88d7578faef08ec90513;hb=f4e38e70bf6dc1ff8c9226d9c8eedaf26fa19f09;hp=505fe86a3e3439d64f10ba1739f6140dfbf183e4;hpb=4cdfc5e86b64137d96c31495cbdea99801714c2b;p=babeltrace.git diff --git a/tests/lib/test_plugin.c b/tests/lib/test_plugin.c index 505fe86a..a22d2b27 100644 --- a/tests/lib/test_plugin.c +++ b/tests/lib/test_plugin.c @@ -15,11 +15,11 @@ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. */ -#include +#include #include #include #include -#include +#include "common/assert.h" #include #include "tap/tap.h" #include "common.h" @@ -173,11 +173,11 @@ static void test_sfs(const char *plugin_dir) plugin, "filter"); ok(filter_comp_class, "bt_plugin_borrow_filter_component_class_by_name_const() finds a filter component class"); - params = bt_value_integer_create_init(23); + params = bt_value_signed_integer_create_init(23); BT_ASSERT(params); ret = bt_query_executor_query(query_exec, bt_component_class_filter_as_component_class_const(filter_comp_class), - "get-something", params, &results); + "get-something", params, BT_LOGGING_LEVEL_NONE, &results); ok(ret == 0 && results, "bt_query_executor_query() succeeds"); BT_ASSERT(bt_value_is_array(results) && bt_value_array_get_size(results) == 2); object = bt_value_array_borrow_element_by_index_const(results, 0); @@ -195,7 +195,7 @@ static void test_sfs(const char *plugin_dir) graph = bt_graph_create(); BT_ASSERT(graph); graph_ret = bt_graph_add_sink_component(graph, sink_comp_class, - "the-sink", NULL, &sink_component); + "the-sink", NULL, BT_LOGGING_LEVEL_NONE, &sink_component); ok(graph_ret == BT_GRAPH_STATUS_OK && sink_component, "bt_graph_add_sink_component() still works after the plugin object is destroyed"); BT_COMPONENT_SINK_PUT_REF_AND_RESET(sink_component);