[Skiboot] [PATCH 3/5] core/device: add test for dt_new() a duplicate node

Stewart Smith stewart at linux.ibm.com
Wed Oct 10 16:19:48 AEDT 2018


Signed-off-by: Stewart Smith <stewart at linux.ibm.com>
---
 core/test/run-device.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/core/test/run-device.c b/core/test/run-device.c
index c317d4cc76f3..727b14fffe43 100644
--- a/core/test/run-device.c
+++ b/core/test/run-device.c
@@ -122,6 +122,7 @@ int main(void)
 	check_path(c1, "/c1");
 	assert(dt_find_by_name(root, "c1") == c1);
 	assert(dt_find_by_path(root, "/c1") == c1);
+	assert(dt_new(root, "c1") == NULL);
 
 	c2 = dt_new(root, "c2");
 	assert(!list_top(&c2->properties, struct dt_property, list));
-- 
2.17.1



More information about the Skiboot mailing list