libfdt: Fix sw_tree1 testcase
There is a bug in the sw_tree1 testcase / utility which puts two "compatible" properties in one node in the output tree. This patch fixes the bug, and also adds a new test checking that the sw_tree1 output is equal to test_tree1.dtb as its supposed to be, which should catch future errors of this type. Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
This commit is contained in:
committed by
Jon Loeliger
parent
9d3af7ab62
commit
d79d4e280f
@@ -64,7 +64,6 @@ int main(int argc, char *argv[])
|
||||
CHECK(fdt_begin_node(fdt, "subsubnode"));
|
||||
CHECK(fdt_property(fdt, "compatible", "subsubnode1\0subsubnode",
|
||||
23));
|
||||
CHECK(fdt_property_string(fdt, "compatible", "subsubnode1\0"));
|
||||
CHECK(fdt_property_typed(fdt, "prop-int", TEST_VALUE_1));
|
||||
CHECK(fdt_end_node(fdt));
|
||||
CHECK(fdt_end_node(fdt));
|
||||
|
||||
Reference in New Issue
Block a user