tests: add `src.ctf.fs` single field testing framework
[babeltrace.git] / tests / data / plugins / src.ctf.fs / field / ctf-1 / pass-static-len-array-of-struct.mp
diff --git a/tests/data/plugins/src.ctf.fs/field/ctf-1/pass-static-len-array-of-struct.mp b/tests/data/plugins/src.ctf.fs/field/ctf-1/pass-static-len-array-of-struct.mp
new file mode 100644 (file)
index 0000000..4ed8683
--- /dev/null
@@ -0,0 +1,42 @@
+---
+struct {
+  struct {
+    u8 a;
+    nt_str b;
+  } x[3];
+} @[2]
+
+---
+01              # `a`
+"salut\0"       # `b`
+
+02              # `a`
+"patente\0"     # `b`
+
+03              # `a`
+"Quebec\0"      # `b`
+
+04              # `a`
+"chez nous\0"   # `b`
+
+05              # `a`
+"aidez-moi\0"   # `b`
+
+06              # `a`
+"rasseye\0"     # `b`
+
+---
+- x:
+  - a: 1
+    b: "salut"
+  - a: 2
+    b: "patente"
+  - a: 3
+    b: "Quebec"
+- x:
+  - a: 4
+    b: "chez nous"
+  - a: 5
+    b: "aidez-moi"
+  - a: 6
+    b: "rasseye"
This page took 0.025368 seconds and 4 git commands to generate.