]> git.dujemihanovic.xyz Git - u-boot.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)
commitf08dcd9fd063af293a4551c1b195efec2ad5f7df
tree176583cb4c0d48c18ff569f644f8724396b7b344
parent721307eba0e7d94241698936c58352ee3c6da748
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