diff options
author | Gilles Peskine <Gilles.Peskine@arm.com> | 2022-12-04 13:10:55 +0100 |
---|---|---|
committer | Gilles Peskine <Gilles.Peskine@arm.com> | 2023-04-26 19:40:02 +0200 |
commit | b3c2eaf00fde007eb402dc714bf7ddda37218316 (patch) | |
tree | b29e2e991eeade7dc9af2e0cbe5a672f430c4065 /tests/suites/helpers.function | |
parent | 5226eb5cd39180aac91563c7b5b75dc321bae02b (diff) | |
download | mbedtls-b3c2eaf00fde007eb402dc714bf7ddda37218316.zip mbedtls-b3c2eaf00fde007eb402dc714bf7ddda37218316.tar.gz mbedtls-b3c2eaf00fde007eb402dc714bf7ddda37218316.tar.bz2 |
Support different types in the parameter store
The test framework stores size_t and int32_t values in the parameter store
by converting them all to int. This is ok in practice, since we assume int
covers int32_t and we don't have test data larger than 2GB. But it's
confusing and error-prone. So make the parameter store a union, which allows
size_t values not to be potentially truncated and makes the code a little
clearer.
Signed-off-by: Gilles Peskine <Gilles.Peskine@arm.com>
Diffstat (limited to 'tests/suites/helpers.function')
-rw-r--r-- | tests/suites/helpers.function | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/suites/helpers.function b/tests/suites/helpers.function index 7615d27..86ff5b4 100644 --- a/tests/suites/helpers.function +++ b/tests/suites/helpers.function @@ -2,6 +2,7 @@ /*----------------------------------------------------------------------------*/ /* Headers */ +#include <test/arguments.h> #include <test/helpers.h> #include <test/macros.h> #include <test/random.h> |