1
0
mirror of https://review.coreboot.org/flashrom.git synced 2025-07-02 06:23:18 +02:00

tests: Upgrade linux_mtd test to run probe lifecycle

No additional mocks are needed, because linux_mtd is doing most of
the job in init function.

BUG=b:181803212
TEST=ninja test

Change-Id: I74436f36f628680c22c7225b1584f06464307775
Signed-off-by: Anastasia Klimchuk <aklm@chromium.org>
Reviewed-on: https://review.coreboot.org/c/flashrom/+/59743
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Angel Pons <th3fanbus@gmail.com>
Reviewed-by: Thomas Heijligen <src@posteo.de>
This commit is contained in:
Anastasia Klimchuk
2021-11-30 14:54:10 +11:00
parent e539d112cd
commit e2f31ca02b
3 changed files with 4 additions and 4 deletions

View File

@ -294,7 +294,7 @@ int linux_mtd_fclose(void *state, FILE *fp)
return 0;
}
void linux_mtd_basic_lifecycle_test_success(void **state)
void linux_mtd_probe_lifecycle_test_success(void **state)
{
#if CONFIG_LINUX_MTD == 1
struct linux_mtd_io_state linux_mtd_io_state = { NULL };
@ -307,7 +307,7 @@ void linux_mtd_basic_lifecycle_test_success(void **state)
io_mock_register(&linux_mtd_io);
run_basic_lifecycle(state, &programmer_linux_mtd, "");
run_probe_lifecycle(state, &programmer_linux_mtd, "", "Opaque flash chip");
io_mock_register(NULL);
#else