From 967e7078b77f8bfcc3374dba057140b4433b9bd2 Mon Sep 17 00:00:00 2001 From: Marek Vasut Date: Thu, 2 Mar 2023 04:08:24 +0100 Subject: [PATCH] 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 Reviewed-by: Simon Glass --- include/test/ut.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/include/test/ut.h b/include/test/ut.h index 4d00b4eeca..2b0dab32f6 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 * -- 2.39.5