X-Git-Url: http://git.efficios.com/?p=babeltrace.git;a=blobdiff_plain;f=tests%2Flib%2Ftest_simple_sink.c;h=952b6bf52a1d0300b09583fb8b78e7c4bddc269c;hp=641aaed13ae2420d057c8632eb8160824ad9eca9;hb=0235b0db7de5bcacdb3650c92461f2ce5eb2143d;hpb=a3f0c7db90f4cfc81090a83a7442b7bc624d5789 diff --git a/tests/lib/test_simple_sink.c b/tests/lib/test_simple_sink.c index 641aaed1..952b6bf5 100644 --- a/tests/lib/test_simple_sink.c +++ b/tests/lib/test_simple_sink.c @@ -1,18 +1,7 @@ /* - * Copyright (c) 2019 Philippe Proulx + * SPDX-License-Identifier: GPL-2.0-only * - * This program is free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation; under version 2 of the License. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License along - * with this program; if not, write to the Free Software Foundation, Inc., - * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. + * Copyright (C) 2019 Philippe Proulx */ #include @@ -29,7 +18,7 @@ struct test_data { static bt_graph_simple_sink_component_initialize_func_status simple_INITIALIZE_func( - bt_self_component_port_input_message_iterator *iterator, + bt_message_iterator *iterator, void *data) { struct test_data *test_data = data; @@ -41,7 +30,7 @@ bt_graph_simple_sink_component_initialize_func_status simple_INITIALIZE_func( static bt_graph_simple_sink_component_consume_func_status simple_consume_func( - bt_self_component_port_input_message_iterator *iterator, + bt_message_iterator *iterator, void *data) { struct test_data *test_data = data; @@ -109,7 +98,6 @@ bt_graph *create_graph_with_source(const bt_port_output **out_port) *out_port = bt_component_source_borrow_output_port_by_index_const( src_comp, 0); BT_ASSERT(*out_port); - bt_component_source_put_ref(src_comp); bt_component_class_source_put_ref(src_comp_cls); bt_message_iterator_class_put_ref(msg_iter_cls); return graph; @@ -163,7 +151,6 @@ void test_simple_expect_run_once_status( ok((run_once_status < 0) == (err != NULL), "Current thread error is set if bt_graph_run_once returned an error"); - bt_component_sink_put_ref(sink_comp); bt_graph_put_ref(graph); if (err) { bt_error_release(err);