]> git.baikalelectronics.ru Git - uboot.git/commit
test: cmd: exit: Add unit test for exit and partly run commands
authorMarek Vasut <marex@denx.de>
Tue, 20 Dec 2022 06:26:00 +0000 (07:26 +0100)
committerTom Rini <trini@konsulko.com>
Wed, 11 Jan 2023 20:02:24 +0000 (15:02 -0500)
commit98ca023f95ee9613a2e4c2439bd85bd5b5538255
tree176583cb4c0d48c18ff569f644f8724396b7b344
parent4f51e1cf4280366af44f9297829834a3085ef20a
test: cmd: exit: Add unit test for exit and partly run commands

Add a test which validates that exit from environment script works as
expected, including return value propagation and clipping to positive
integers.

Reviewed-by: Simon Glass <sjg@chromium.org>
Signed-off-by: Marek Vasut <marex@denx.de>
include/test/suites.h
test/cmd/Makefile
test/cmd/exit.c [new file with mode: 0644]
test/cmd_ut.c