summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/lifecycle.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/lifecycle.c b/tests/lifecycle.c
index 5566b3bcf..1a8f21895 100644
--- a/tests/lifecycle.c
+++ b/tests/lifecycle.c
@@ -355,9 +355,15 @@ void linux_spi_probe_lifecycle_test_success(void **state)
* Specifically, it is reading the buffer size from sysfs.
*/
#if CONFIG_LINUX_SPI == 1
+ static struct io_mock_fallback_open_state linux_spi_fallback_open_state = {
+ .noc = 0,
+ .paths = { "/dev/null", NULL },
+ .flags = { O_RDWR },
+ };
const struct io_mock linux_spi_io = {
.fgets = linux_spi_fgets,
.ioctl = linux_spi_ioctl,
+ .fallback_open_state = &linux_spi_fallback_open_state,
};
io_mock_register(&linux_spi_io);