diff options
Diffstat (limited to 'test')
| -rw-r--r-- | test/image/Kconfig | 1 | ||||
| -rw-r--r-- | test/image/spl_load.c | 9 | ||||
| -rw-r--r-- | test/image/spl_load_os.c | 2 | 
3 files changed, 6 insertions, 6 deletions
| diff --git a/test/image/Kconfig b/test/image/Kconfig index 6f0bb81f835..45b6e8c52e6 100644 --- a/test/image/Kconfig +++ b/test/image/Kconfig @@ -52,6 +52,7 @@ config SPL_UT_LOAD_SPI  config SPL_UT_LOAD_OS  	bool "Test loading from the host OS"  	depends on SANDBOX && SPL_LOAD_FIT +	select SPL_LOAD_BLOCK  	default y  	help  	  Smoke test to ensure that loading U-boot works in sandbox. diff --git a/test/image/spl_load.c b/test/image/spl_load.c index ab4c14d6491..35ceed67756 100644 --- a/test/image/spl_load.c +++ b/test/image/spl_load.c @@ -342,12 +342,11 @@ static int spl_test_image(struct unit_test_state *uts, const char *test_name,  		if (check_image_info(uts, &info_write, &info_read))  			return CMD_RET_FAILURE;  	} else { -		struct spl_load_info load = { -			.bl_len = 1, -			.priv = img, -			.read = spl_test_read, -		}; +		struct spl_load_info load; +		spl_set_bl_len(&load, 1); +		load.priv = img; +		load.read = spl_test_read;  		if (type == IMX8)  			ut_assertok(spl_load_imx_container(&info_read, &load,  							   0)); diff --git a/test/image/spl_load_os.c b/test/image/spl_load_os.c index f46df907c63..26228a8a4a9 100644 --- a/test/image/spl_load_os.c +++ b/test/image/spl_load_os.c @@ -51,7 +51,7 @@ static int spl_test_load(struct unit_test_state *uts)  	int fd;  	memset(&load, '\0', sizeof(load)); -	load.bl_len = 512; +	spl_set_bl_len(&load, 512);  	load.read = read_fit_image;  	ret = sandbox_find_next_phase(fname, sizeof(fname), true); | 
