X-Git-Url: http://git.efficios.com/?a=blobdiff_plain;f=tests%2Flib%2Ftest_plugin.c;h=c11fd12f9773d3d98e71a1a3d2790d623a3cffbf;hb=601b0d3c9a6bf91274d0f01ccdec7fecfe3ed310;hp=5e57232b24d483ca807f0302b49d2fd20643c714;hpb=da91b29ad2964b85601e25843f1dca92f6c97406;p=babeltrace.git diff --git a/tests/lib/test_plugin.c b/tests/lib/test_plugin.c index 5e57232b..c11fd12f 100644 --- a/tests/lib/test_plugin.c +++ b/tests/lib/test_plugin.c @@ -168,7 +168,6 @@ static void test_sfs(const char *plugin_dir) struct bt_value *res_params; struct bt_graph *graph; const char *object_str; - enum bt_value_status value_ret; enum bt_graph_status graph_ret; struct bt_query_executor *query_exec = bt_query_executor_create(); int ret; @@ -235,8 +234,7 @@ static void test_sfs(const char *plugin_dir) BT_ASSERT(bt_value_is_array(results) && bt_value_array_get_size(results) == 2); object = bt_value_array_borrow_element_by_index(results, 0); BT_ASSERT(object && bt_value_is_string(object)); - value_ret = bt_value_string_get(object, &object_str); - BT_ASSERT(value_ret == BT_VALUE_STATUS_OK); + object_str = bt_value_string_get(object); ok(strcmp(object_str, "get-something") == 0, "bt_component_class_query() receives the expected object name"); res_params = bt_value_array_borrow_element_by_index(results, 1);