summaryrefslogtreecommitdiff
path: root/tools/binman/test/57_unknown_contents.dts
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2018-07-06 10:27:17 -0600
committerSimon Glass <sjg@chromium.org>2018-07-09 09:11:00 -0600
commit736bb0aec80891891f3f86004e1afa7976585918 (patch)
tree0fc884fa334107d29956bb285eaff536c2c56beb /tools/binman/test/57_unknown_contents.dts
parentadc5701134f7041d7f767b672b66afb8b64ba5ce (diff)
binman: Correct operation of ObtainContents()
This method is supposed to return the contents of an entry. However at present there is no check that it actually does. Also some implementations do not return 'True' to indicate success, as required. Add a check for things working as expected, and correct the implementations. This requires some additional test cases to cover things which were missed originally. Add these at the same time. Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'tools/binman/test/57_unknown_contents.dts')
-rw-r--r--tools/binman/test/57_unknown_contents.dts14
1 files changed, 14 insertions, 0 deletions
diff --git a/tools/binman/test/57_unknown_contents.dts b/tools/binman/test/57_unknown_contents.dts
new file mode 100644
index 0000000000..6ea98d7cab
--- /dev/null
+++ b/tools/binman/test/57_unknown_contents.dts
@@ -0,0 +1,14 @@
+// SPDX-License-Identifier: GPL-2.0+
+
+/dts-v1/;
+
+/ {
+ #address-cells = <1>;
+ #size-cells = <1>;
+
+ binman {
+ _testing {
+ return-unknown-contents;
+ };
+ };
+};