]> git.dujemihanovic.xyz Git - u-boot.git/commit
test: spl: Fix spl_test_load not failing if fname doesn't exist
authorSean Anderson <seanga2@gmail.com>
Sat, 14 Oct 2023 20:47:58 +0000 (16:47 -0400)
committerTom Rini <trini@konsulko.com>
Wed, 18 Oct 2023 00:50:52 +0000 (20:50 -0400)
commitb5bf83b6912a67d2a147cf866c87854bd43cc863
treef283a1236d7c294756c5c4592ec12e3ffbd5d85e
parentc56468a60d503aee45bc39542307a9d8e6cf5a40
test: spl: Fix spl_test_load not failing if fname doesn't exist

Returning a negative value from a unit test doesn't automatically fail the
test.  We have to fail an assertion. Modify the test to do so.

This now causes the test to count as a failure on VPL. This is because the
fname of SPL (and U-Boot) is generated with make_exec in os_jump_to_image.
The original name of SPL is gone, and we can't determine the name of U-Boot
from the generated name.

Signed-off-by: Sean Anderson <seanga2@gmail.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
configs/sandbox_vpl_defconfig
test/image/spl_load_os.c