tests: call bt_current_thread_clear_error() when handling an error
[babeltrace.git] / tests / lib / test_graph_topo.c
index b4ea1cb0ad642255b3dd2eb66be88f7e6b00b33f..5efffde951a5254091072e451b3ef5b2cbfcd027 100644 (file)
@@ -699,6 +699,7 @@ void test_src_port_connected_error(void)
                sink_def_port, &conn);
        ok(status != BT_GRAPH_CONNECT_PORTS_STATUS_OK,
                "bt_graph_connect_ports() returns an error");
+       bt_current_thread_clear_error();
        ok(!conn, "returned connection is still NULL");
        gsrc = bt_component_source_as_component_const(src);
        gsink = bt_component_sink_as_component_const(sink);
@@ -764,6 +765,7 @@ void test_sink_port_connected_error(void)
                sink_def_port, &conn);
        ok(status != BT_GRAPH_CONNECT_PORTS_STATUS_OK,
                "bt_graph_connect_ports() returns an error");
+       bt_current_thread_clear_error();
        ok(!conn, "returned connection is still NULL");
        gsrc = bt_component_source_as_component_const(src);
        gsink = bt_component_sink_as_component_const(sink);
This page took 0.027677 seconds and 4 git commands to generate.