aboutsummaryrefslogtreecommitdiffstats
path: root/tests/tests.c
diff options
context:
space:
mode:
Diffstat (limited to 'tests/tests.c')
-rw-r--r--tests/tests.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/tests.c b/tests/tests.c
index d3df356a..e3ad2416 100644
--- a/tests/tests.c
+++ b/tests/tests.c
@@ -136,6 +136,12 @@ FILE *__wrap_fopen64(const char *pathname, const char *mode)
return not_null();
}
+FILE *__wrap_fdopen(int fd, const char *mode)
+{
+ LOG_ME;
+ return not_null();
+}
+
int __wrap_stat(const char *path, void *buf)
{
LOG_ME;
@@ -343,6 +349,8 @@ int main(void)
cmocka_unit_test(erase_chip_with_dummyflasher_test_success),
cmocka_unit_test(read_chip_test_success),
cmocka_unit_test(read_chip_with_dummyflasher_test_success),
+ cmocka_unit_test(write_chip_test_success),
+ cmocka_unit_test(write_chip_with_dummyflasher_test_success),
};
ret |= cmocka_run_group_tests_name("chip.c tests", chip_tests, NULL, NULL);