diff options
| author | hexcoder- <heiko@hexco.de> | 2020-08-07 19:53:32 +0200 |
|---|---|---|
| committer | hexcoder- <heiko@hexco.de> | 2020-08-07 19:53:32 +0200 |
| commit | 8551d8e48e18a5a50955945b5f73aff3cb492de5 (patch) | |
| tree | 4e62bae271be851bd2e556d51e09197163814190 /test/unittests/unit_list.c | |
| parent | 32558bc8072caa14ee670c6be40af4d183e8ffcc (diff) | |
| parent | 934cdc32f4c828d6a8045e4096344601fe528a76 (diff) | |
| download | afl++-8551d8e48e18a5a50955945b5f73aff3cb492de5.tar.gz | |
Merge branch 'dev' of https://github.com/AFLplusplus/AFLplusplus into dev
Diffstat (limited to 'test/unittests/unit_list.c')
| -rw-r--r-- | test/unittests/unit_list.c | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/test/unittests/unit_list.c b/test/unittests/unit_list.c index 4c2063b6..43665f1a 100644 --- a/test/unittests/unit_list.c +++ b/test/unittests/unit_list.c @@ -27,23 +27,26 @@ extern void mock_assert(const int result, const char* const expression, (compile with `--wrap=exit`) */ extern void exit(int status); extern void __real_exit(int status); -void __wrap_exit(int status); +//void __wrap_exit(int status); void __wrap_exit(int status) { + (void)status; assert(0); } /* ignore all printfs */ #undef printf extern int printf(const char *format, ...); -extern int __real_printf(const char *format, ...); +//extern int __real_printf(const char *format, ...); int __wrap_printf(const char *format, ...); int __wrap_printf(const char *format, ...) { + (void)format; return 1; } static list_t testlist = {.element_prealloc_count = 0}; static void test_contains(void **state) { + (void)state; u32 one = 1; u32 two = 2; @@ -56,6 +59,7 @@ static void test_contains(void **state) { } static void test_foreach(void **state) { + (void)state; u32 one = 1; u32 two = 2; @@ -75,6 +79,7 @@ static void test_foreach(void **state) { } static void test_long_list(void **state) { + (void)state; u32 result1 = 0; u32 result2 = 0; @@ -118,6 +123,8 @@ static void test_long_list(void **state) { } int main(int argc, char **argv) { + (void)argc; + (void)argv; const struct CMUnitTest tests[] = { cmocka_unit_test(test_contains), |
