diff options
author | Simon Glass <sjg@chromium.org> | 2024-08-22 07:57:58 -0600 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2024-08-26 18:51:49 -0600 |
commit | 0af38d12d98070bc09001e200b15c7e0d6a80388 (patch) | |
tree | 0fc583e69b99668aa716d3de5f56ba2b362e0711 /test/cmd/test_pause.c | |
parent | 0e77c2b6117c1a8497676b33de85766c3f3a904c (diff) |
test: cmd: Drop unnecessary console_record_reset_enable()
It is seldom necessary to call this function. Drop its use in the
command tests.
Add a few extra checks to the wget test so that resetting is not
needed.
Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'test/cmd/test_pause.c')
-rw-r--r-- | test/cmd/test_pause.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/test/cmd/test_pause.c b/test/cmd/test_pause.c index 3703290350b..927fe174d74 100644 --- a/test/cmd/test_pause.c +++ b/test/cmd/test_pause.c @@ -14,7 +14,6 @@ DECLARE_GLOBAL_DATA_PTR; static int lib_test_hush_pause(struct unit_test_state *uts) { /* Test default message */ - console_record_reset_enable(); /* Cook a newline when the command is expected to pause */ console_in_puts("\n"); ut_assertok(run_command("pause", 0)); @@ -23,7 +22,6 @@ static int lib_test_hush_pause(struct unit_test_state *uts) ut_assertok(ut_check_console_end(uts)); /* Test provided message */ - console_record_reset_enable(); /* Cook a newline when the command is expected to pause */ console_in_puts("\n"); ut_assertok(run_command("pause 'Prompt for pause...'", 0)); @@ -32,7 +30,6 @@ static int lib_test_hush_pause(struct unit_test_state *uts) ut_assertok(ut_check_console_end(uts)); /* Test providing more than one params */ - console_record_reset_enable(); /* No newline cooked here since the command is expected to fail */ ut_asserteq(1, run_command("pause a b", 0)); console_record_readline(uts->actual_str, sizeof(uts->actual_str)); @@ -41,4 +38,4 @@ static int lib_test_hush_pause(struct unit_test_state *uts) return 0; } -LIB_TEST(lib_test_hush_pause, 0); +LIB_TEST(lib_test_hush_pause, UTF_CONSOLE); |