diff options
Diffstat (limited to 'tests/tests.c')
-rw-r--r-- | tests/tests.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/tests.c b/tests/tests.c index 41972ba2..b11f6421 100644 --- a/tests/tests.c +++ b/tests/tests.c @@ -17,6 +17,7 @@ #include "io_mock.h" #include "tests.h" #include "wraps.h" +#include "io_real.h" #include <stdio.h> #include <string.h> @@ -77,6 +78,7 @@ uint8_t __wrap_sio_read(uint16_t port, uint8_t reg) static int mock_open(const char *pathname, int flags, mode_t mode) { + maybe_unmock_io(pathname); if (get_io() && get_io()->iom_open) return get_io()->iom_open(get_io()->state, pathname, flags, mode); |