diff options
author | Stewart Smith <stewart@linux.ibm.com> | 2018-10-10 16:19:48 +1100 |
---|---|---|
committer | Stewart Smith <stewart@linux.ibm.com> | 2018-10-16 18:26:24 +1100 |
commit | 8fd95036cdd8566e2d0912fad3f461036b892d1b (patch) | |
tree | 98baca5534054f0632d4dcd0b9e4db880c2c54a2 | |
parent | 8fba29a2b5e5af920e28c1bccbbc900b84ebe218 (diff) | |
download | skiboot-8fd95036cdd8566e2d0912fad3f461036b892d1b.zip skiboot-8fd95036cdd8566e2d0912fad3f461036b892d1b.tar.gz skiboot-8fd95036cdd8566e2d0912fad3f461036b892d1b.tar.bz2 |
core/device: add test for dt_new() a duplicate node
Signed-off-by: Stewart Smith <stewart@linux.ibm.com>
-rw-r--r-- | core/test/run-device.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/core/test/run-device.c b/core/test/run-device.c index c317d4c..727b14f 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)); |