From 5e96925ba5b934105a9c63f050b824f24a6dfb3d Mon Sep 17 00:00:00 2001 From: Simon Glass Date: Tue, 6 Sep 2022 20:27:27 -0600 Subject: 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 --- include/test/ut.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'include/test') diff --git a/include/test/ut.h b/include/test/ut.h index f7d1d18f7c1..f7217aa8ac5 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)) { \ -- cgit v1.2.3