Add array/sequence with empty struct
authorMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Sat, 30 Nov 2013 12:18:04 +0000 (13:18 +0100)
committerMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Sat, 30 Nov 2013 12:18:04 +0000 (13:18 +0100)
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
tests/1.8/regression/stream/pass/array-with-empty-struct/dummystream [new file with mode: 0644]
tests/1.8/regression/stream/pass/array-with-empty-struct/metadata [new file with mode: 0644]
tests/1.8/regression/stream/pass/sequence-with-empty-struct/dummystream [new file with mode: 0644]
tests/1.8/regression/stream/pass/sequence-with-empty-struct/metadata [new file with mode: 0644]

diff --git a/tests/1.8/regression/stream/pass/array-with-empty-struct/dummystream b/tests/1.8/regression/stream/pass/array-with-empty-struct/dummystream
new file mode 100644 (file)
index 0000000..5ea947a
--- /dev/null
@@ -0,0 +1 @@
\1füÁ*d"Ðlî\11à\8c\bË\a׳¥dB
\ No newline at end of file
diff --git a/tests/1.8/regression/stream/pass/array-with-empty-struct/metadata b/tests/1.8/regression/stream/pass/array-with-empty-struct/metadata
new file mode 100644 (file)
index 0000000..f963d78
--- /dev/null
@@ -0,0 +1,22 @@
+/* CTF 1.8 */
+typealias integer { size = 8; align = 8; signed = false; base = 10; } := uint8_t;
+typealias integer { size = 32; align = 32; signed = false; base = hex; } := uint32_t;
+
+trace {
+       major = 0;
+       minor = 1;
+       uuid = "2a6422d0-6cee-11e0-8c08-cb07d7b3a564";
+       byte_order = le;
+       packet.header := struct {
+               uint32_t magic;
+               uint8_t  uuid[16];
+       };
+};
+
+event {
+       name = string;
+       fields := struct {
+               uint8_t field1;
+               struct {} field2[42];
+       };
+};
diff --git a/tests/1.8/regression/stream/pass/sequence-with-empty-struct/dummystream b/tests/1.8/regression/stream/pass/sequence-with-empty-struct/dummystream
new file mode 100644 (file)
index 0000000..5ea947a
--- /dev/null
@@ -0,0 +1 @@
\1füÁ*d"Ðlî\11à\8c\bË\a׳¥dB
\ No newline at end of file
diff --git a/tests/1.8/regression/stream/pass/sequence-with-empty-struct/metadata b/tests/1.8/regression/stream/pass/sequence-with-empty-struct/metadata
new file mode 100644 (file)
index 0000000..45e193a
--- /dev/null
@@ -0,0 +1,22 @@
+/* CTF 1.8 */
+typealias integer { size = 8; align = 8; signed = false; base = 10; } := uint8_t;
+typealias integer { size = 32; align = 32; signed = false; base = hex; } := uint32_t;
+
+trace {
+       major = 0;
+       minor = 1;
+       uuid = "2a6422d0-6cee-11e0-8c08-cb07d7b3a564";
+       byte_order = le;
+       packet.header := struct {
+               uint32_t magic;
+               uint8_t  uuid[16];
+       };
+};
+
+event {
+       name = string;
+       fields := struct {
+               uint8_t nr_elem;
+               struct {} field[nr_elem];
+       };
+};
This page took 0.024443 seconds and 4 git commands to generate.