projects
/
platform
/
upstream
/
connectedhomeip.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Fix for x86_64 build fail
[platform/upstream/connectedhomeip.git]
/
third_party
/
mbedtls
/
repo
/
tests
/
suites
/
test_suite_error.function
1
/* BEGIN_HEADER */
2
#include "mbedtls/error.h"
3
/* END_HEADER */
4
5
/* BEGIN_DEPENDENCIES
6
* depends_on:MBEDTLS_ERROR_C
7
* END_DEPENDENCIES
8
*/
9
10
/* BEGIN_CASE */
11
void error_strerror( int code, char * result_str )
12
{
13
char buf[500];
14
15
memset( buf, 0, sizeof( buf ) );
16
17
mbedtls_strerror( code, buf, 500 );
18
19
TEST_ASSERT( strcmp( buf, result_str ) == 0 );
20
}
21
/* END_CASE */