Added submodule contents into tree
This commit is contained in:
parent
01a752555c
commit
9b991208cd
4934 changed files with 1657477 additions and 5 deletions
21
externals/mbedtls/tests/suites/test_suite_error.function
vendored
Normal file
21
externals/mbedtls/tests/suites/test_suite_error.function
vendored
Normal file
|
|
@ -0,0 +1,21 @@
|
|||
/* BEGIN_HEADER */
|
||||
#include "mbedtls/error.h"
|
||||
/* END_HEADER */
|
||||
|
||||
/* BEGIN_DEPENDENCIES
|
||||
* depends_on:MBEDTLS_ERROR_C
|
||||
* END_DEPENDENCIES
|
||||
*/
|
||||
|
||||
/* BEGIN_CASE */
|
||||
void error_strerror(int code, char *result_str)
|
||||
{
|
||||
char buf[500];
|
||||
|
||||
memset(buf, 0, sizeof(buf));
|
||||
|
||||
mbedtls_strerror(code, buf, 500);
|
||||
|
||||
TEST_ASSERT(strcmp(buf, result_str) == 0);
|
||||
}
|
||||
/* END_CASE */
|
||||
Loading…
Add table
Add a link
Reference in a new issue