diff options
Diffstat (limited to 'test')
-rw-r--r-- | test/self/of_manipulation.c | 10 | ||||
-rw-r--r-- | test/self/of_manipulation.dts | 6 |
2 files changed, 14 insertions, 2 deletions
diff --git a/test/self/of_manipulation.c b/test/self/of_manipulation.c index 6eb6062e12..7e30a60ca6 100644 --- a/test/self/of_manipulation.c +++ b/test/self/of_manipulation.c @@ -57,6 +57,16 @@ static void test_of_basics(struct device_node *root) of_property_write_bool(node1, "property1", true); assert_equal(node1, node2); + + of_property_write_bool(node2, "property1", false); + of_property_write_u32(node2, "property1", 1); + of_property_write_u32(node2, "property2", 2); + + of_property_write_u32(node1, "property3", 1); + of_property_write_u32(node1, "property2", 2); + of_rename_property(node1, "property3", "property1"); + + assert_equal(node1, node2); } static void test_of_property_strings(struct device_node *root) diff --git a/test/self/of_manipulation.dts b/test/self/of_manipulation.dts index a69d944c1e..2cc6773fa9 100644 --- a/test/self/of_manipulation.dts +++ b/test/self/of_manipulation.dts @@ -4,12 +4,14 @@ / { node1 { - property1; + property1 = <1>; + property2 = <2>; node21 { }; }; node2 { - property1; + property1 = <1>; + property2 = <2>; node21 { }; }; |