diff options
| author | Simon Glass <sjg@chromium.org> | 2024-08-22 07:58:03 -0600 |
|---|---|---|
| committer | Tom Rini <trini@konsulko.com> | 2024-08-26 18:51:49 -0600 |
| commit | e6f498e70bec1cec5db81b62d544e9cba3607504 (patch) | |
| tree | 6a6b1efaaca6fa69dbea56986a1027e4469770f5 /test/lib | |
| parent | d3ac70aac43834aae2447a7781f024599ab3f728 (diff) | |
test: Tidy up checking for console end
Use the ut_assert_console_end() function provided, rather than doing it
separately.
Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'test/lib')
| -rw-r--r-- | test/lib/test_print.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/lib/test_print.c b/test/lib/test_print.c index 55e3ea1ed59..cd7f3f85769 100644 --- a/test/lib/test_print.c +++ b/test/lib/test_print.c @@ -20,7 +20,7 @@ static int test_print_freq(struct unit_test_state *uts, print_freq(freq, ";\n"); console_record_readline(uts->actual_str, sizeof(uts->actual_str)); ut_asserteq_str(expected, uts->actual_str); - ut_assertok(ut_check_console_end(uts)); + ut_assert_console_end(); return 0; } @@ -46,7 +46,7 @@ static int test_print_size(struct unit_test_state *uts, print_size(freq, ";\n"); console_record_readline(uts->actual_str, sizeof(uts->actual_str)); ut_asserteq_str(expected, uts->actual_str); - ut_assertok(ut_check_console_end(uts)); + ut_assert_console_end(); return 0; } |
