diff options
author | Andreas Schneider <asn@cryptomilk.org> | 2020-10-05 13:28:11 +0200 |
---|---|---|
committer | Andreas Schneider <asn@cryptomilk.org> | 2020-10-12 08:25:26 +0200 |
commit | 0e70150002ab7bcb626109b287f23c62ecf97565 (patch) | |
tree | 961957269884941431f015021b5a122a6ee6c913 /tests | |
parent | fe9663b80e1e505e93522ef75a660bedc32d7775 (diff) | |
download | cmocka-0e70150002ab7bcb626109b287f23c62ecf97565.tar.gz cmocka-0e70150002ab7bcb626109b287f23c62ecf97565.tar.xz cmocka-0e70150002ab7bcb626109b287f23c62ecf97565.zip |
cmocka: Replace LargestIntegralType with uintmax_t
This requires #include <stdint.h>
Fixes #38
Fixes #49
Diffstat (limited to 'tests')
-rw-r--r-- | tests/test_alloc.c | 1 | ||||
-rw-r--r-- | tests/test_assert_macros.c | 1 | ||||
-rw-r--r-- | tests/test_assert_macros_fail.c | 1 | ||||
-rw-r--r-- | tests/test_basics.c | 1 | ||||
-rw-r--r-- | tests/test_cmockery.c | 1 | ||||
-rw-r--r-- | tests/test_double_macros.c | 1 | ||||
-rw-r--r-- | tests/test_exception_handler.c | 1 | ||||
-rw-r--r-- | tests/test_fixtures.c | 1 | ||||
-rw-r--r-- | tests/test_float_macros.c | 1 | ||||
-rw-r--r-- | tests/test_group_fixtures.c | 1 | ||||
-rw-r--r-- | tests/test_group_setup_assert.c | 1 | ||||
-rw-r--r-- | tests/test_group_setup_fail.c | 1 | ||||
-rw-r--r-- | tests/test_groups.c | 1 | ||||
-rw-r--r-- | tests/test_ordering.c | 1 | ||||
-rw-r--r-- | tests/test_ordering_fail.c | 1 | ||||
-rw-r--r-- | tests/test_returns.c | 1 | ||||
-rw-r--r-- | tests/test_returns_fail.c | 1 | ||||
-rw-r--r-- | tests/test_setup_fail.c | 1 | ||||
-rw-r--r-- | tests/test_skip.c | 1 | ||||
-rw-r--r-- | tests/test_skip_filter.c | 1 | ||||
-rw-r--r-- | tests/test_strmatch.c | 1 | ||||
-rw-r--r-- | tests/test_wildcard.c | 1 |
22 files changed, 22 insertions, 0 deletions
diff --git a/tests/test_alloc.c b/tests/test_alloc.c index 966814a..3948084 100644 --- a/tests/test_alloc.c +++ b/tests/test_alloc.c @@ -3,6 +3,7 @@ #include <stdarg.h> #include <stddef.h> #include <setjmp.h> +#include <stdint.h> #include <cmocka.h> #include <cmocka_private.h> diff --git a/tests/test_assert_macros.c b/tests/test_assert_macros.c index 85b0a38..c63ad3b 100644 --- a/tests/test_assert_macros.c +++ b/tests/test_assert_macros.c @@ -3,6 +3,7 @@ #include <stdarg.h> #include <stddef.h> #include <setjmp.h> +#include <stdint.h> #include <cmocka.h> #include <cmocka_private.h> diff --git a/tests/test_assert_macros_fail.c b/tests/test_assert_macros_fail.c index aea919a..fc354d4 100644 --- a/tests/test_assert_macros_fail.c +++ b/tests/test_assert_macros_fail.c @@ -3,6 +3,7 @@ #include <stdarg.h> #include <stddef.h> #include <setjmp.h> +#include <stdint.h> #include <cmocka.h> #include <cmocka_private.h> diff --git a/tests/test_basics.c b/tests/test_basics.c index 1bb493f..9866d81 100644 --- a/tests/test_basics.c +++ b/tests/test_basics.c @@ -20,6 +20,7 @@ #include <stdarg.h> #include <stddef.h> #include <setjmp.h> +#include <stdint.h> #include <cmocka.h> static int setup(void **state) { diff --git a/tests/test_cmockery.c b/tests/test_cmockery.c index 83a7451..027b1ac 100644 --- a/tests/test_cmockery.c +++ b/tests/test_cmockery.c @@ -17,6 +17,7 @@ #include <stdarg.h> #include <stddef.h> #include <setjmp.h> +#include <stdint.h> #include <cmockery/cmockery.h> /* A test case that does nothing and succeeds. */ diff --git a/tests/test_double_macros.c b/tests/test_double_macros.c index 138c579..b892272 100644 --- a/tests/test_double_macros.c +++ b/tests/test_double_macros.c @@ -20,6 +20,7 @@ #include <stdarg.h> #include <stddef.h> #include <setjmp.h> +#include <stdint.h> #include <cmocka.h> /* A test case that does check if double is equal. */ diff --git a/tests/test_exception_handler.c b/tests/test_exception_handler.c index 5652095..571918b 100644 --- a/tests/test_exception_handler.c +++ b/tests/test_exception_handler.c @@ -1,6 +1,7 @@ #include <stdarg.h> #include <stddef.h> #include <setjmp.h> +#include <stdint.h> #include <cmocka.h> #include <stdlib.h> diff --git a/tests/test_fixtures.c b/tests/test_fixtures.c index 6d39487..e6d05d1 100644 --- a/tests/test_fixtures.c +++ b/tests/test_fixtures.c @@ -1,6 +1,7 @@ #include <stdarg.h> #include <stddef.h> #include <setjmp.h> +#include <stdint.h> #include <cmocka.h> #include <stdlib.h> diff --git a/tests/test_float_macros.c b/tests/test_float_macros.c index a9c7251..6ce8906 100644 --- a/tests/test_float_macros.c +++ b/tests/test_float_macros.c @@ -20,6 +20,7 @@ #include <stdarg.h> #include <stddef.h> #include <setjmp.h> +#include <stdint.h> #include <cmocka.h> /* A test case that does check if float is equal. */ diff --git a/tests/test_group_fixtures.c b/tests/test_group_fixtures.c index 64f0ab7..e9b4ad3 100644 --- a/tests/test_group_fixtures.c +++ b/tests/test_group_fixtures.c @@ -4,6 +4,7 @@ #include <stdarg.h> #include <stddef.h> #include <setjmp.h> +#include <stdint.h> #include <cmocka.h> static int group_setup(void **state) diff --git a/tests/test_group_setup_assert.c b/tests/test_group_setup_assert.c index eef61f8..92f88b6 100644 --- a/tests/test_group_setup_assert.c +++ b/tests/test_group_setup_assert.c @@ -4,6 +4,7 @@ #include <stdarg.h> #include <stddef.h> #include <setjmp.h> +#include <stdint.h> #include <cmocka.h> static int group_setup_failing(void **state) diff --git a/tests/test_group_setup_fail.c b/tests/test_group_setup_fail.c index 7815c03..1f2e701 100644 --- a/tests/test_group_setup_fail.c +++ b/tests/test_group_setup_fail.c @@ -4,6 +4,7 @@ #include <stdarg.h> #include <stddef.h> #include <setjmp.h> +#include <stdint.h> #include <cmocka.h> static int group_setup_failing(void **state) diff --git a/tests/test_groups.c b/tests/test_groups.c index af9e2b8..ea936c0 100644 --- a/tests/test_groups.c +++ b/tests/test_groups.c @@ -20,6 +20,7 @@ #include <stdarg.h> #include <stddef.h> #include <setjmp.h> +#include <stdint.h> #include <cmocka.h> static int setup(void **state) { diff --git a/tests/test_ordering.c b/tests/test_ordering.c index 817c0ba..fab2568 100644 --- a/tests/test_ordering.c +++ b/tests/test_ordering.c @@ -3,6 +3,7 @@ #include <stdarg.h> #include <stddef.h> #include <setjmp.h> +#include <stdint.h> #include <cmocka.h> #include <cmocka_private.h> diff --git a/tests/test_ordering_fail.c b/tests/test_ordering_fail.c index 652f5ad..88b4e29 100644 --- a/tests/test_ordering_fail.c +++ b/tests/test_ordering_fail.c @@ -3,6 +3,7 @@ #include <stdarg.h> #include <stddef.h> #include <setjmp.h> +#include <stdint.h> #include <cmocka.h> #include <cmocka_private.h> diff --git a/tests/test_returns.c b/tests/test_returns.c index b9370c9..574fa00 100644 --- a/tests/test_returns.c +++ b/tests/test_returns.c @@ -3,6 +3,7 @@ #include <stdarg.h> #include <stddef.h> #include <setjmp.h> +#include <stdint.h> #include <cmocka.h> #include <cmocka_private.h> diff --git a/tests/test_returns_fail.c b/tests/test_returns_fail.c index 81197d3..fa7f291 100644 --- a/tests/test_returns_fail.c +++ b/tests/test_returns_fail.c @@ -3,6 +3,7 @@ #include <stdarg.h> #include <stddef.h> #include <setjmp.h> +#include <stdint.h> #include <cmocka.h> #include <cmocka_private.h> diff --git a/tests/test_setup_fail.c b/tests/test_setup_fail.c index e3f8df8..9affaa6 100644 --- a/tests/test_setup_fail.c +++ b/tests/test_setup_fail.c @@ -3,6 +3,7 @@ #include <stdarg.h> #include <stddef.h> #include <setjmp.h> +#include <stdint.h> #include <cmocka.h> static int setup_fail(void **state) { diff --git a/tests/test_skip.c b/tests/test_skip.c index 127161a..0a6953d 100644 --- a/tests/test_skip.c +++ b/tests/test_skip.c @@ -17,6 +17,7 @@ #include <stdarg.h> #include <stddef.h> #include <setjmp.h> +#include <stdint.h> #include <cmocka.h> /* A test case that does check if an int is equal. */ diff --git a/tests/test_skip_filter.c b/tests/test_skip_filter.c index e40209e..56dc262 100644 --- a/tests/test_skip_filter.c +++ b/tests/test_skip_filter.c @@ -19,6 +19,7 @@ #include <stdarg.h> #include <stddef.h> #include <setjmp.h> +#include <stdint.h> #include <cmocka.h> static void test_skip1(void **state) diff --git a/tests/test_strmatch.c b/tests/test_strmatch.c index f2d966b..f8d088c 100644 --- a/tests/test_strmatch.c +++ b/tests/test_strmatch.c @@ -19,6 +19,7 @@ #include <stdarg.h> #include <stddef.h> #include <setjmp.h> +#include <stdint.h> #include <cmocka.h> #include "../src/cmocka.c" diff --git a/tests/test_wildcard.c b/tests/test_wildcard.c index 10ee195..3b85bb3 100644 --- a/tests/test_wildcard.c +++ b/tests/test_wildcard.c @@ -17,6 +17,7 @@ #include <stdarg.h> #include <stddef.h> #include <setjmp.h> +#include <stdint.h> #include <cmocka.h> static void test_ok1(void **state) |