graph: Fix: bt_graph_configure() does not propagate errors
authorFrancis Deslauriers <francis.deslauriers@efficios.com>
Mon, 1 Apr 2019 13:58:02 +0000 (09:58 -0400)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Fri, 3 May 2019 22:19:39 +0000 (18:19 -0400)
commit025502dfade7bc21beaf8f0bd0eff6c11e1fa3a8
tree3516995126aebc07f48efc56ec0dc24a4998f00e
parent9184eefe53519d4e38b48d0c05cc11844bd79b46
graph: Fix: bt_graph_configure() does not propagate errors

Issue
=====
When configuring the graph, message iterator initialize functions may fail
and return an error status (e.g. _STATUS_NOMEM and _STATUS_ERROR). Those
error status are not propagated back to the caller of
`bt_graph_configure()` function. The caller that will consider the graph
to be configured properly and run it will it assertions down the road.

Solution
========
Return `BT_GRAPH_STATUS_ERROR` if any of the sinks returned a non-OK
status from its `graph_is_configured()` function.

Known drawbacks
===============
None.

Signed-off-by: Francis Deslauriers <francis.deslauriers@efficios.com>
include/babeltrace/graph/graph-internal.h
This page took 0.024444 seconds and 4 git commands to generate.