u-boot/test
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
..
boot arm: qemu: Move GUIDs to the C file 2023-02-06 13:04:53 -05:00
cmd test: cmd: fdt: Test fdt bootcpu 2023-03-09 08:50:48 -08:00
common cli: Correct handling of invalid escape sequences in cread_line() 2023-03-28 09:25:51 -04:00
dm reset: Allow reset_get_by_name() with NULL name 2023-02-12 13:44:20 -05:00
env sandbox: add test of CONFIG_ENV_IMPORT_FDT 2021-05-04 12:52:30 -04:00
fs Use grep -E or plain grep instead of egrep 2023-01-11 15:02:24 -05:00
fuzz dm: treewide: Use uclass_first_device_err when accessing one device 2022-10-17 21:17:12 -06:00
image treewide: Drop image_header_t typedef 2022-09-29 16:07:57 -04:00
lib test: unit test for crc8 2023-03-13 13:56:14 +01:00
log log: Remove some places where we redefine LOGLEVEL 2022-12-23 10:07:03 -05:00
optee test: Add a macros for finding tests in linker_lists 2021-03-12 09:57:30 -05:00
overlay test: Add a macros for finding tests in linker_lists 2021-03-12 09:57:30 -05:00
py trace: Relax test requirements 2023-02-23 13:29:20 -05:00
stdint
trace
bloblist.c bloblist: Add functions to obtain base address and size 2022-01-13 09:13:41 -07:00
bootm.c test: Fix bootm_test_subst_var() running independently 2022-09-12 18:06:36 -04:00
cmd_ut.c cmd: Add a SEAMA image load command 2023-02-06 17:10:15 -05:00
command_ut.c
common.sh
compression.c test: compression: add zstd uncompression test 2023-01-18 19:41:15 -05:00
Kconfig test: compression: add zstd uncompression test 2023-01-18 19:41:15 -05:00
Makefile test: Add some tests for kconfig.h 2022-08-10 13:38:30 -04:00
nokia_rx51_test.sh Nokia RX-51: Add booting from UBI into test script 2022-09-15 16:11:46 -04:00
print_ut.c lib: Move string tests to the string module 2022-04-25 10:00:03 -04:00
run test: Fix typo in test name 2022-10-21 21:37:47 -04:00
str_ut.c lib: Add a function to split a string into substrings 2023-01-23 18:11:39 -05:00
test-main.c sandbox: Allow SPI flash bootdevs to be disabled for tests 2023-01-23 18:11:41 -05:00
time_ut.c
unicode_ut.c test: unit test for u16_strcasecmp() 2023-01-04 13:17:42 +01:00
ut.c test: Add a way to skip console checking until a string matches 2021-09-16 14:39:40 -04:00