diff options
-rw-r--r-- | tests/tests.c | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/tests/tests.c b/tests/tests.c index 31246074..5be42161 100644 --- a/tests/tests.c +++ b/tests/tests.c @@ -19,13 +19,16 @@ #include <stdio.h> /* redefinitions/wrapping */ +#define LOG_ME printf("%s is called\n", __func__) + void __wrap_physunmap(void *virt_addr, size_t len) { - fprintf(stderr, "%s\n", __func__); + LOG_ME; } + void *__wrap_physmap(const char *descr, uintptr_t phys_addr, size_t len) { - fprintf(stderr, "%s\n", __func__); + LOG_ME; return NULL; } @@ -33,6 +36,8 @@ int main(void) { int ret = 0; + cmocka_set_message_output(CM_OUTPUT_STDOUT); + const struct CMUnitTest helpers_tests[] = { cmocka_unit_test(address_to_bits_test_success), cmocka_unit_test(bitcount_test_success), |