summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarek Vasut <marek.vasut+renesas@mailbox.org>2023-03-02 04:08:24 +0100
committerSimon Glass <sjg@chromium.org>2023-03-09 08:50:47 -0800
commit967e7078b77f8bfcc3374dba057140b4433b9bd2 (patch)
treec502169fe99466e52872fa00f66da9a2e57b4feb
parent4e6d0305506ccb347401f770bed8f35e4c56aac2 (diff)
test: Add ut_assert_nextline_empty() empty line helper
Add helper macro to test for empty lines, which is an inobvious wrapper around ut_assert_nextline("%s", "") . Signed-off-by: Marek Vasut <marek.vasut+renesas@mailbox.org> Reviewed-by: Simon Glass <sjg@chromium.org>
-rw-r--r--include/test/ut.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/test/ut.h b/include/test/ut.h
index 4d00b4eeca1..2b0dab32f68 100644
--- a/include/test/ut.h
+++ b/include/test/ut.h
@@ -334,6 +334,10 @@ int ut_check_console_dump(struct unit_test_state *uts, int total_bytes);
return CMD_RET_FAILURE; \
} \
+/* Assert that the next console output line is empty */
+#define ut_assert_nextline_empty() \
+ ut_assert_nextline("%s", "")
+
/**
* ut_check_free() - Return the number of bytes free in the malloc() pool
*