From: Mathieu Desnoyers Date: Fri, 29 Jul 2011 17:14:51 +0000 (-0400) Subject: Update ctf-path todo test X-Git-Tag: v0.3~10 X-Git-Url: http://git.efficios.com/?p=babeltrace.git;a=commitdiff_plain;h=25c7b1aecb45de9126f2003e2b7c7311d5ef1bd1;hp=ff34a2553be1776a20e616afc83e6ed0e3796802 Update ctf-path todo test Signed-off-by: Mathieu Desnoyers --- diff --git a/formats/ctf/metadata/ctf-test/tofix/ctf-path.txt b/formats/ctf/metadata/ctf-test/tofix/ctf-path.txt index 718d7638..a9c76a06 100644 --- a/formats/ctf/metadata/ctf-test/tofix/ctf-path.txt +++ b/formats/ctf/metadata/ctf-test/tofix/ctf-path.txt @@ -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 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 b; }; };