diff options
author | Simon Glass <sjg@chromium.org> | 2018-07-06 10:27:17 -0600 |
---|---|---|
committer | Simon Glass <sjg@chromium.org> | 2018-07-09 09:11:00 -0600 |
commit | 736bb0aec80891891f3f86004e1afa7976585918 (patch) | |
tree | 0fc884fa334107d29956bb285eaff536c2c56beb /tools/binman/test/57_unknown_contents.dts | |
parent | adc5701134f7041d7f767b672b66afb8b64ba5ce (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.dts | 14 |
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; + }; + }; +}; |