diff options
author | hexcoder- <heiko@hexco.de> | 2020-04-01 09:42:40 +0200 |
---|---|---|
committer | Dominik Maier <domenukk@gmail.com> | 2020-04-01 13:10:07 +0200 |
commit | effa766d4abfc1901585e306609f3571a268796e (patch) | |
tree | f13b9edb432ed8bc4f80dec218cb37b98ae7e7a7 /test/unittests/unit_maybe_alloc.c | |
parent | b9783e44a3941e3ea381ae47ed1e2fc90bc2ef92 (diff) | |
download | afl++-effa766d4abfc1901585e306609f3571a268796e.tar.gz |
fix cmocka fixup
Diffstat (limited to 'test/unittests/unit_maybe_alloc.c')
-rw-r--r-- | test/unittests/unit_maybe_alloc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/unittests/unit_maybe_alloc.c b/test/unittests/unit_maybe_alloc.c index 7c6cfaaa..6a165dd4 100644 --- a/test/unittests/unit_maybe_alloc.c +++ b/test/unittests/unit_maybe_alloc.c @@ -2,6 +2,7 @@ #include <stddef.h> #include <setjmp.h> #include <assert.h> +#include <cmocka.h> /* cmocka < 1.0 didn't support these features we need */ #ifndef assert_ptr_equal #define assert_ptr_equal(a, b) \ @@ -12,7 +13,6 @@ #define cmocka_unit_test unit_test #define cmocka_run_group_tests(t, setup, teardown) run_tests(t) #endif -#include <cmocka.h> extern void mock_assert(const int result, const char* const expression, |