test_trace_listener.c: fix: set trace's native byte order
authorPhilippe Proulx <eeppeliteloop@gmail.com>
Thu, 27 Apr 2017 21:27:43 +0000 (17:27 -0400)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Sun, 28 May 2017 16:57:41 +0000 (12:57 -0400)
Signed-off-by: Philippe Proulx <eeppeliteloop@gmail.com>
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
tests/lib/test_trace_listener.c

index 18255eea0c0eacc47c8226dc79e074c9828059b6..c472399c96f55859e4b9c5f4141a8a8ec583b421 100644 (file)
@@ -108,6 +108,12 @@ struct bt_ctf_trace *init_trace(void)
                goto end;
        }
 
+       ret = bt_ctf_trace_set_native_byte_order(trace,
+               BT_CTF_BYTE_ORDER_LITTLE_ENDIAN);
+       if (ret) {
+               goto error;
+       }
+
        ret = bt_ctf_stream_class_add_event_class(sc1, ec1);
        if (ret) {
                goto error;
This page took 0.025102 seconds and 4 git commands to generate.