ir: make sure you can't add a SC to a trace with a native BO
authorPhilippe Proulx <eeppeliteloop@gmail.com>
Mon, 3 Apr 2017 22:32:01 +0000 (18:32 -0400)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Sun, 28 May 2017 16:57:40 +0000 (12:57 -0400)
commitd490fcbefb2a6069918ab3fa02e204754b57fc6d
treeb705b00768efe1d550ed945ac5e131ff205e8494
parent3f5808e584c030d29db447ecffd42496d09b85fb
ir: make sure you can't add a SC to a trace with a native BO

When you create a trace object with bt_ctf_trace_create(), its native
byte order is set to BT_CTF_BYTE_ORDER_NATIVE, which essentially means
"unset". Before freezing the trace (which only happens in
bt_ctf_trace_add_stream_class()), make sure that the trace's native byte
order is a real byte order, not still BT_CTF_BYTE_ORDER_NATIVE (unset).

Signed-off-by: Philippe Proulx <eeppeliteloop@gmail.com>
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
lib/ctf-ir/trace.c
tests/lib/test_bt_ctf_field_type_validation.c
tests/lib/test_ctf_ir_ref.c
tests/lib/test_ir_visit.c
This page took 0.024863 seconds and 4 git commands to generate.