lib: add post condition assertions for current thread error after user functions
[babeltrace.git] / src / lib / graph / graph.h
index 4e8daa27deb0c1f278ed41c5cc39817562260be5..ac431d2a3635132882c50be765d72faaec87fe60 100644 (file)
@@ -257,6 +257,7 @@ int bt_graph_configure(struct bt_graph *graph)
                                comp_status == BT_FUNC_STATUS_MEMORY_ERROR,
                                "Unexpected returned status: status=%s",
                                bt_common_func_status_string(comp_status));
+                       BT_ASSERT_POST_NO_ERROR_IF_NO_ERROR_STATUS(comp_status);
                        if (comp_status != BT_FUNC_STATUS_OK) {
                                if (comp_status < 0) {
                                        BT_LIB_LOGW_APPEND_CAUSE(
This page took 0.024205 seconds and 4 git commands to generate.