tests: Add mbedtls_test_ prefix to platform_* functions
Add mbedtls_test_ prefix to platform_setup() and platform_teardown() test helper functions. Signed-off-by: Ronald Cron <ronald.cron@arm.com>
This commit is contained in:
parent
2058d56fcc
commit
e9c09f1efc
@ -50,8 +50,8 @@
|
||||
#include <stddef.h>
|
||||
#include <stdint.h>
|
||||
|
||||
int platform_setup( void );
|
||||
void platform_teardown( void );
|
||||
int mbedtls_test_platform_setup( void );
|
||||
void mbedtls_test_platform_teardown( void );
|
||||
|
||||
int unhexify( unsigned char *obuf, const char *ibuf );
|
||||
void hexify( unsigned char *obuf, const unsigned char *ibuf, int len );
|
||||
|
@ -24,7 +24,7 @@
|
||||
static mbedtls_platform_context platform_ctx;
|
||||
#endif
|
||||
|
||||
int platform_setup( void )
|
||||
int mbedtls_test_platform_setup( void )
|
||||
{
|
||||
int ret = 0;
|
||||
#if defined(MBEDTLS_PLATFORM_C)
|
||||
@ -33,7 +33,7 @@ int platform_setup( void )
|
||||
return( ret );
|
||||
}
|
||||
|
||||
void platform_teardown( void )
|
||||
void mbedtls_test_platform_teardown( void )
|
||||
{
|
||||
#if defined(MBEDTLS_PLATFORM_C)
|
||||
mbedtls_platform_teardown( &platform_ctx );
|
||||
|
@ -261,7 +261,7 @@ $platform_code
|
||||
*/
|
||||
int main( int argc, const char *argv[] )
|
||||
{
|
||||
int ret = platform_setup();
|
||||
int ret = mbedtls_test_platform_setup();
|
||||
if( ret != 0 )
|
||||
{
|
||||
mbedtls_fprintf( stderr,
|
||||
@ -271,6 +271,6 @@ int main( int argc, const char *argv[] )
|
||||
}
|
||||
|
||||
ret = execute_tests( argc, argv );
|
||||
platform_teardown();
|
||||
mbedtls_test_platform_teardown();
|
||||
return( ret );
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user