diff options
author | David Gibson <david@gibson.dropbear.id.au> | 2008-02-27 13:45:13 +1100 |
---|---|---|
committer | Jon Loeliger <jdl@loeliger.com> | 2008-03-23 08:00:32 -0500 |
commit | fa5b520ccb5e8da8d67ebc1926416753684f4e70 (patch) | |
tree | 2fcb2d1c043c5c374279ea02bf63f9040daa254b /tests/testdata.h | |
parent | 7c635dcb2f43529bbe7903f5a6ce56984d21b964 (diff) | |
download | dtc-fa5b520ccb5e8da8d67ebc1926416753684f4e70.zip dtc-fa5b520ccb5e8da8d67ebc1926416753684f4e70.tar.gz dtc-fa5b520ccb5e8da8d67ebc1926416753684f4e70.tar.bz2 |
dtc: Implement checks for the format of node and property names
This patch adds checks to the checking framework to verify that node
and property names contain only legal characters, and in the case of
node names there is at most one '@'.
At present when coming from dts input, this is mostly already ensured
by the grammer, however putting the check later means its easier to
generate helpful error messages rather than just "syntax error". For
dtb input, these checks replace the older similar check built into
flattree.c.
Testcases for the checks are also implemented.
Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
Diffstat (limited to 'tests/testdata.h')
-rw-r--r-- | tests/testdata.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/testdata.h b/tests/testdata.h index 0f7f2fa..9c8b040 100644 --- a/tests/testdata.h +++ b/tests/testdata.h @@ -33,4 +33,7 @@ #ifndef __ASSEMBLY__ extern struct fdt_header _test_tree1; extern struct fdt_header _truncated_property; +extern struct fdt_header _bad_node_char; +extern struct fdt_header _bad_node_format; +extern struct fdt_header _bad_prop_char; #endif /* ! __ASSEMBLY */ |