mirror of
https://github.com/yuzu-emu/mbedtls.git
synced 2024-11-26 10:55:46 +01:00
Test suite automatically uses buffer-based memory allocator if present
Eat your own dog-food..
This commit is contained in:
parent
6e339b52e8
commit
e07c431eb3
@ -59,6 +59,12 @@ FCT_BGN()
|
|||||||
{
|
{
|
||||||
$suite_pre_code
|
$suite_pre_code
|
||||||
|
|
||||||
|
#if defined(POLARSSL_MEMORY_BUFFER_ALLOC_C)
|
||||||
|
unsigned char buf[1000000];
|
||||||
|
memory_buffer_alloc_init( buf, sizeof(buf) );
|
||||||
|
#endif
|
||||||
|
|
||||||
|
|
||||||
FCT_SUITE_BGN($suite_name)
|
FCT_SUITE_BGN($suite_name)
|
||||||
{
|
{
|
||||||
END
|
END
|
||||||
@ -141,6 +147,10 @@ print TEST_FILE << "END";
|
|||||||
}
|
}
|
||||||
FCT_SUITE_END();
|
FCT_SUITE_END();
|
||||||
|
|
||||||
|
#if defined(POLARSSL_MEMORY_BUFFER_ALLOC_C) && defined(POLARSSL_MEMORY_DEBUG)
|
||||||
|
memory_buffer_alloc_status();
|
||||||
|
#endif
|
||||||
|
|
||||||
$suite_post_code
|
$suite_post_code
|
||||||
}
|
}
|
||||||
FCT_END();
|
FCT_END();
|
||||||
|
@ -1,3 +1,7 @@
|
|||||||
|
#if defined(POLARSSL_MEMORY_BUFFER_ALLOC_C)
|
||||||
|
#include "polarssl/memory.h"
|
||||||
|
#endif
|
||||||
|
|
||||||
#ifdef _MSC_VER
|
#ifdef _MSC_VER
|
||||||
#include <basetsd.h>
|
#include <basetsd.h>
|
||||||
typedef UINT32 uint32_t;
|
typedef UINT32 uint32_t;
|
||||||
|
Loading…
Reference in New Issue
Block a user