diff options
| author | Simon Glass <sjg@chromium.org> | 2024-08-22 07:58:02 -0600 | 
|---|---|---|
| committer | Tom Rini <trini@konsulko.com> | 2024-08-26 18:51:49 -0600 | 
| commit | d3ac70aac43834aae2447a7781f024599ab3f728 (patch) | |
| tree | 13224f2fbdf68a7b161027971a8bafe9944fcf50 /test/lib/test_print.c | |
| parent | 75c535c37dd2aa90416e7d247d5d8a152be2f701 (diff) | |
test: Use UTF_CONSOLE in remaining tests
Set this flag rather than doing things manually in the test.
Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'test/lib/test_print.c')
| -rw-r--r-- | test/lib/test_print.c | 10 | 
1 files changed, 2 insertions, 8 deletions
| diff --git a/test/lib/test_print.c b/test/lib/test_print.c index e356afc22ba..55e3ea1ed59 100644 --- a/test/lib/test_print.c +++ b/test/lib/test_print.c @@ -17,10 +17,7 @@ DECLARE_GLOBAL_DATA_PTR;  static int test_print_freq(struct unit_test_state *uts,  			   uint64_t freq, char *expected)  { -	ut_silence_console(uts); -	console_record_reset_enable();  	print_freq(freq, ";\n"); -	ut_unsilence_console(uts);  	console_record_readline(uts->actual_str, sizeof(uts->actual_str));  	ut_asserteq_str(expected, uts->actual_str);  	ut_assertok(ut_check_console_end(uts)); @@ -41,15 +38,12 @@ static int lib_test_print_freq(struct unit_test_state *uts)  	ut_assertok(test_print_freq(uts, 54321987654321, "54321.99 GHz;"));  	return 0;  } -LIB_TEST(lib_test_print_freq, 0); +LIB_TEST(lib_test_print_freq, UTF_CONSOLE);  static int test_print_size(struct unit_test_state *uts,  			   uint64_t freq, char *expected)  { -	ut_silence_console(uts); -	console_record_reset_enable();  	print_size(freq, ";\n"); -	ut_unsilence_console(uts);  	console_record_readline(uts->actual_str, sizeof(uts->actual_str));  	ut_asserteq_str(expected, uts->actual_str);  	ut_assertok(ut_check_console_end(uts)); @@ -73,4 +67,4 @@ static int lib_test_print_size(struct unit_test_state *uts)  	ut_assertok(test_print_size(uts, 54321987654321, "49.4 TiB;"));  	return 0;  } -LIB_TEST(lib_test_print_size, 0); +LIB_TEST(lib_test_print_size, UTF_CONSOLE); | 
