tests: add a basic pre-condition assertion test
[babeltrace.git] / tests / lib / conds / conds-triggers.c
index 810af9720d04391eeaca0ac6d5652ae049339cec..7a137052cfcbc341df5005a748d0131b20c8a13c 100644 (file)
@@ -9,6 +9,12 @@
 #include "common/assert.h"
 #include "utils.h"
 
+static
+void trigger_graph_mip_version(void)
+{
+       bt_graph_create(292);
+}
+
 static
 bt_field_class *get_uint_fc(bt_self_component *self_comp)
 {
@@ -42,6 +48,8 @@ void trigger_fc_int_set_field_value_range_null(bt_self_component *self_comp)
 
 static
 const struct cond_trigger triggers[] = {
+       COND_TRIGGER_PRE_BASIC("pre:graph-create:valid-mip-version", NULL,
+               trigger_graph_mip_version),
        COND_TRIGGER_PRE_RUN_IN_COMP_CLS_INIT(
                "pre:field-class-integer-set-field-value-range:valid-n",
                "0",
This page took 0.023195 seconds and 4 git commands to generate.