Signed-off-by: Philippe Proulx <eeppeliteloop@gmail.com>
barectf_assert_file_exists streams-key-invalid-identifier.yaml
barectf_config_check_fail
}
+
+@test 'multiple streams in metadata object with missing "stream_id" packet header type field makes barectf fail' {
+ barectf_assert_file_exists multiple-streams-trace-ph-no-stream-id.yaml
+ barectf_config_check_fail
+}
--- /dev/null
+version: '2.1'
+metadata:
+ $include:
+ - stdint.yaml
+ - stdmisc.yaml
+ type-aliases:
+ pct:
+ class: struct
+ fields:
+ packet_size: uint32
+ content_size: uint32
+ pt:
+ class: struct
+ fields:
+ a: uint32
+ trace:
+ byte-order: le
+ packet-header-type:
+ class: struct
+ fields:
+ magic: ctf-magic
+ streams:
+ s1:
+ packet-context-type: pct
+ events:
+ ev1:
+ payload-type: pt
+ s2:
+ packet-context-type: pct
+ events:
+ ev2:
+ payload-type: pt