mirror of
https://github.com/Mbed-TLS/mbedtls.git
synced 2025-07-28 00:21:48 +03:00
Converted .function file to c-like format and adapted generator code
This commit is contained in:
@ -1,18 +1,19 @@
|
||||
BEGIN_HEADER
|
||||
/* BEGIN_HEADER */
|
||||
#include <polarssl/error.h>
|
||||
END_HEADER
|
||||
/* END_HEADER */
|
||||
|
||||
BEGIN_DEPENDENCIES
|
||||
depends_on:POLARSSL_ERROR_C
|
||||
END_DEPENDENCIES
|
||||
/* BEGIN_DEPENDENCIES
|
||||
* depends_on:POLARSSL_ERROR_C
|
||||
* END_DEPENDENCIES
|
||||
*/
|
||||
|
||||
BEGIN_CASE
|
||||
error_strerror:#code:result_str
|
||||
/* BEGIN_CASE */
|
||||
void error_strerror( int code, char *result_str )
|
||||
{
|
||||
char buf[500];
|
||||
|
||||
error_strerror( {code}, buf, 500 );
|
||||
error_strerror( code, buf, 500 );
|
||||
|
||||
TEST_ASSERT( strcmp( buf, {result_str} ) == 0 );
|
||||
TEST_ASSERT( strcmp( buf, result_str ) == 0 );
|
||||
}
|
||||
END_CASE
|
||||
/* END_CASE */
|
||||
|
Reference in New Issue
Block a user