summaryrefslogtreecommitdiff
path: root/include/test
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2022-09-06 20:27:27 -0600
committerTom Rini <trini@konsulko.com>2022-09-29 22:43:43 -0400
commit5e96925ba5b934105a9c63f050b824f24a6dfb3d (patch)
treeaec2be17ce4278246bdf92af15f5eefc060628dc /include/test
parent92291652b5741647919770c29cae8a2aac56b2bf (diff)
downloadu-boot-5e96925ba5b934105a9c63f050b824f24a6dfb3d.tar.gz
u-boot-5e96925ba5b934105a9c63f050b824f24a6dfb3d.tar.bz2
u-boot-5e96925ba5b934105a9c63f050b824f24a6dfb3d.zip
dm: core: Complete phandle implementation using the other FDT
We need to be able to look up phandles in any FDT, not just the control FDT. Use the 'other' FDT to test this, with a helper function which gets this as an oftree that can then we used as needed. Add a few more tests and some comments at the top of the file, to explain what is going on. Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'include/test')
-rw-r--r--include/test/ut.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/test/ut.h b/include/test/ut.h
index f7d1d18f7c..f7217aa8ac 100644
--- a/include/test/ut.h
+++ b/include/test/ut.h
@@ -119,6 +119,11 @@ int ut_check_console_end(struct unit_test_state *uts);
*/
int ut_check_console_dump(struct unit_test_state *uts, int total_bytes);
+/* Report a failure, with printf() string */
+#define ut_reportf(fmt, args...) \
+ ut_failf(uts, __FILE__, __LINE__, __func__, "report", \
+ fmt, ##args)
+
/* Assert that a condition is non-zero */
#define ut_assert(cond) \
if (!(cond)) { \