diff options
author | David Gibson <david@gibson.dropbear.id.au> | 2007-11-06 10:42:45 +1100 |
---|---|---|
committer | Jon Loeliger <jdl@freescale.com> | 2007-11-06 12:18:32 -0600 |
commit | d79d4e280f008a02b4da030b32189b5efbff7d89 (patch) | |
tree | 2ab5ca845a51bf250529d3eeeed62c476ea132c0 /tests | |
parent | 9d3af7ab624eee7a611bd115b7ea17d5f88bb1f5 (diff) | |
download | dtc-d79d4e280f008a02b4da030b32189b5efbff7d89.zip dtc-d79d4e280f008a02b4da030b32189b5efbff7d89.tar.gz dtc-d79d4e280f008a02b4da030b32189b5efbff7d89.tar.bz2 |
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>
Diffstat (limited to 'tests')
-rwxr-xr-x | tests/run_tests.sh | 1 | ||||
-rw-r--r-- | tests/sw_tree1.c | 1 |
2 files changed, 1 insertions, 1 deletions
diff --git a/tests/run_tests.sh b/tests/run_tests.sh index 8fcc44a..278008b 100755 --- a/tests/run_tests.sh +++ b/tests/run_tests.sh @@ -70,6 +70,7 @@ libfdt_tests () { run_test sw_tree1 tree1_tests sw_tree1.test.dtb tree1_tests unfinished_tree1.test.dtb + run_test dtbs_equal_ordered test_tree1.dtb sw_tree1.test.dtb # fdt_move tests for tree in test_tree1.dtb sw_tree1.test.dtb unfinished_tree1.test.dtb; do diff --git a/tests/sw_tree1.c b/tests/sw_tree1.c index 8784868..68551c3 100644 --- a/tests/sw_tree1.c +++ b/tests/sw_tree1.c @@ -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)); |