Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
BC
public
external
mbedtls
Commits
52a555cd
Commit
52a555cd
authored
Mar 27, 2014
by
Manuel Pégourié-Gonnard
Browse files
Also test backwards compat strerror() function
parent
6c33a16d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
0 deletions
+10
-0
tests/suites/test_suite_error.function
tests/suites/test_suite_error.function
+10
-0
No files found.
tests/suites/test_suite_error.function
View file @
52a555cd
...
...
@@ -12,8 +12,18 @@ void error_strerror( int code, char *result_str )
{
char buf[500];
memset( buf, 0, sizeof( buf ) );
polarssl_strerror( code, buf, 500 );
TEST_ASSERT( strcmp( buf, result_str ) == 0 );
#if defined(POLARSSL_ERROR_STRERROR_BC)
memset( buf, 0, sizeof( buf ) );
error_strerror( code, buf, 500 );
TEST_ASSERT( strcmp( buf, result_str ) == 0 );
#endif
}
/* END_CASE */
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment