]> git.baikalelectronics.ru Git - uboot.git/commit
test: serial: Add test for putc/puts
authorSean Anderson <sean.anderson@seco.com>
Mon, 4 Apr 2022 18:17:59 +0000 (14:17 -0400)
committerTom Rini <trini@konsulko.com>
Thu, 14 Apr 2022 19:39:15 +0000 (15:39 -0400)
commitcf84091bd795cf5c6d0b3f89e4d395a5215fba81
tree89d69f532715c6e61ee5e5f73c71a1458119897c
parentf1138120a5d5a3b654da8eef6965400c5675841b
test: serial: Add test for putc/puts

This adds a test to ensure that puts is equivalent to putc called in a
loop. We don't verify the contents of the message to avoid having to
record console output a second time (though that could be added in the
future). The globals are initialized to non-zero values to avoid a
warning; in particular, the character count is off-by-one (but we always
make relative measurements).

Signed-off-by: Sean Anderson <sean.anderson@seco.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
arch/sandbox/include/asm/serial.h
drivers/serial/sandbox.c
test/dm/serial.c