Update ctf-path todo test
authorMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Fri, 29 Jul 2011 17:14:51 +0000 (13:14 -0400)
committerMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Fri, 29 Jul 2011 17:15:09 +0000 (13:15 -0400)
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
formats/ctf/metadata/ctf-test/tofix/ctf-path.txt

index 718d763807930ebe82dcb9c78bdc697c89619934..a9c76a063816321b5e225b9fb4ea021bbf2ce90f 100644 (file)
@@ -7,8 +7,8 @@ trace {
     byte_order = le;
     uuid = "aaaaaaaa-aaaa-aaaa-aaaa-aaaaaaaaaaaa";
     packet.header := struct  {
-                        uint32_t magic;                        
-                     };
+        uint32_t magic;                        
+    };
 };
 
 variant var {
@@ -30,7 +30,20 @@ event {
        /*
         * TODO: Only an identifier is expected in the variant/sequence
         * tag. It should be a dotted expression (a path).
+        *
         */
         variant var <stream.event.header.a> b;
+
+       /*
+        * TODO
+        * The path lookup only allows lookup for a full path starting
+        * from the root or for a field within the current scope. The
+        * CTF spec allows defining a relative sub-scope for a preceding
+        * field.
+        */
+       struct {
+               enum select sel2;
+       } str2;
+        variant var2 <str2.sel2> b;
     };
 };
This page took 0.02484 seconds and 4 git commands to generate.