diff options
Diffstat (limited to 'tests/helpers.c')
-rw-r--r-- | tests/helpers.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/helpers.c b/tests/helpers.c index a920c1563..271fb4831 100644 --- a/tests/helpers.c +++ b/tests/helpers.c @@ -15,11 +15,10 @@ #include <include/test.h> +#include "tests.h" #include "flash.h" #include <stdint.h> -#include <stdlib.h> - void address_to_bits_test_success(void **state) { @@ -46,6 +45,7 @@ void strcat_realloc_test_success(void **state) const char src0[] = "hello"; const char src1[] = " world"; char *dest = calloc(1, 1); + assert_non_null(dest); dest = strcat_realloc(dest, src0); dest = strcat_realloc(dest, src1); assert_string_equal("hello world", dest); |