u-boot/test/common
Simon Glass be0169f07e cli: Correct handling of invalid escape sequences in cread_line()
The second call to cli_ch_process() is in the wrong place, meaning that
the one of the characters of an invalid escape sequence is swallowed
instead of being returned.

Fix the bug and add a test to cover this.

This behaviour matches that of the code before cli_getch() was
introduced. This was verified on the commit before b08e9d4b66 i.e.:

   7d850f85aa ("sandbox: Enable mmc command and legacy images")

Signed-off-by: Simon Glass <sjg@chromium.org>
Reported-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
2023-03-28 09:25:51 -04:00
..
cmd_ut_common.c test: add first autoboot unit tests 2021-07-23 13:36:20 -04:00
cread.c cli: Correct handling of invalid escape sequences in cread_line() 2023-03-28 09:25:51 -04:00
cyclic.c cyclic: Use schedule() instead of WATCHDOG_RESET() 2022-09-18 10:26:33 +02:00
event.c event: Add events for device probe/remove 2022-03-10 08:28:36 -05:00
Makefile cli: Correct several bugs in cli_getch() 2023-03-28 09:25:51 -04:00
test_autoboot.c sandbox: Reduce keyed autoboot delay 2021-08-01 09:05:24 -06:00