From 3fd3d05196b2da6fe4be48b02953a276a78756f1 Mon Sep 17 00:00:00 2001 From: Gilles Peskine Date: Thu, 2 Nov 2023 17:14:01 +0100 Subject: [PATCH] New files for memory-related test functions Signed-off-by: Gilles Peskine --- tests/include/test/memory.h | 18 ++++++++++++++++++ tests/src/test_memory.c | 15 +++++++++++++++ 2 files changed, 33 insertions(+) create mode 100644 tests/include/test/memory.h create mode 100644 tests/src/test_memory.c diff --git a/tests/include/test/memory.h b/tests/include/test/memory.h new file mode 100644 index 0000000000..ef05112f2f --- /dev/null +++ b/tests/include/test/memory.h @@ -0,0 +1,18 @@ +/** + * \file memory.h + * + * \brief Helper macros and functions related to testing memory management. + */ + +/* + * Copyright The Mbed TLS Contributors + * SPDX-License-Identifier: Apache-2.0 OR GPL-2.0-or-later + */ + +#ifndef TEST_MEMORY_H +#define TEST_MEMORY_H + +#include "mbedtls/build_info.h" +#include "mbedtls/platform.h" + +#endif /* TEST_MEMORY_H */ diff --git a/tests/src/test_memory.c b/tests/src/test_memory.c new file mode 100644 index 0000000000..cda91e5eaf --- /dev/null +++ b/tests/src/test_memory.c @@ -0,0 +1,15 @@ +/** + * \file memory.c + * + * \brief Helper functions related to testing memory management. + */ + +/* + * Copyright The Mbed TLS Contributors + * SPDX-License-Identifier: Apache-2.0 OR GPL-2.0-or-later + */ + +#include +#include +#include +