Signed-off-by: Philippe Proulx <eeppeliteloop@gmail.com>
barectf_assert_file_exists pt-not-struct.yaml
barectf_config_check_fail
}
+
+@test 'empty event object makes barectf fail' {
+ barectf_assert_file_exists no-fields-at-all.yaml
+ barectf_config_check_fail
+}
--- /dev/null
+version: '2.1'
+metadata:
+ type-aliases:
+ uint16:
+ class: int
+ size: 16
+ trace:
+ byte-order: le
+ streams:
+ my_stream:
+ packet-context-type:
+ class: struct
+ fields:
+ packet_size: uint16
+ content_size: uint16
+ events:
+ my_event: {}