From 25c7b1aecb45de9126f2003e2b7c7311d5ef1bd1 Mon Sep 17 00:00:00 2001 From: Mathieu Desnoyers Date: Fri, 29 Jul 2011 13:14:51 -0400 Subject: [PATCH 1/1] Update ctf-path todo test Signed-off-by: Mathieu Desnoyers --- .../ctf/metadata/ctf-test/tofix/ctf-path.txt | 17 +++++++++++++++-- 1 file changed, 15 insertions(+), 2 deletions(-) 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; }; }; -- 2.34.1