Add pass/fail tests for repeated event id
[ctf-testsuite.git] / tests / 1.9 / pass / string-literal-escape / metadata
CommitLineData
17f98b63
MD
1/* CTF 1.8 */
2typealias integer { size = 8; align = 8; signed = false; base = 10; } := uint8_t;
3typealias integer { size = 32; align = 32; signed = false; base = hex; } := uint32_t;
4
5trace {
6 major = 0;
7 minor = 1;
1884f867 8 test2 = "?\x20\040\123\0?";
17f98b63
MD
9 uuid = "2a6422d0-6cee-11e0-8c08-cb07d7b3a564";
10 byte_order = le;
11 packet.header := struct {
12 uint32_t magic;
13 uint8_t uuid[16];
14 };
15};
16
1884f867
MD
17/* use babeltrace -f trace:hostname to print. */
18
19/*
20 * Expected:
21
22abc " hex: A, #, #, #1,
23oct: A, #, #, #1,
24
25 */
26
27env {
28 hostname = "\nabc \" hex: \x41, \x23, \x023, \x0231,\noct: \101, \043, \43, \0431, \0NOT SEEN";
29};
30
17f98b63
MD
31stream {
32 packet.context := struct {
33 uint32_t content_size;
34 uint32_t packet_size;
35 };
36};
37
38event {
39 name = string;
40 fields := struct { string str; };
41};
This page took 0.024679 seconds and 4 git commands to generate.