ir: make sure you can't add a SC to a trace with a native BO
[babeltrace.git] / tests / lib / test_ir_visit.c
index 6209079f60597939d979beb84fd1fecb8a67c3c6..68534812af130e9d7b56b0988b687c2db08e1629 100644 (file)
@@ -27,6 +27,7 @@
 #include <babeltrace/ctf-ir/visitor.h>
 #include <stdlib.h>
 #include <string.h>
+#include <assert.h>
 
 #define NR_TESTS 13
 
@@ -104,6 +105,9 @@ struct bt_ctf_trace *init_trace(void)
                goto end;
        }
 
+       ret = bt_ctf_trace_set_native_byte_order(trace,
+               BT_CTF_BYTE_ORDER_LITTLE_ENDIAN);
+       assert(ret == 0);
        ret = bt_ctf_stream_class_add_event_class(sc1, ec1);
        if (ret) {
                goto error;
This page took 0.026287 seconds and 4 git commands to generate.