lib: add post condition assertions for current thread error after user functions
[babeltrace.git] / src / lib / graph / mip.c
index 887ae157b805ce24effd901147f33e7bb3670a4d..2e0aac35d65a8d5f03f555c81a4ca32e22957611 100644 (file)
@@ -25,6 +25,7 @@
 
 #include "lib/assert-pre.h"
 #include "lib/assert-post.h"
+#include <stdbool.h>
 #include <unistd.h>
 #include <glib.h>
 #include <babeltrace2/graph/mip.h>
@@ -115,7 +116,7 @@ int validate_operative_mip_version_in_array(GPtrArray *descriptors,
                        break;
                }
                default:
-                       abort();
+                       bt_common_abort();
                }
 
                if (!method) {
@@ -145,6 +146,7 @@ int validate_operative_mip_version_in_array(GPtrArray *descriptors,
                        range_set->ranges->len > 0,
                        "User method returned `BT_FUNC_STATUS_OK` without "
                        "adding a range to the supported MIP version range set.");
+               BT_ASSERT_POST_NO_ERROR_IF_NO_ERROR_STATUS(method_status);
                if (method_status < 0) {
                        BT_LIB_LOGW_APPEND_CAUSE(
                                "Component class's \"get supported MIP versions\" method failed: "
This page took 0.037595 seconds and 4 git commands to generate.