mirror of
https://github.com/Mbed-TLS/mbedtls.git
synced 2026-05-11 22:42:23 +02:00
Corrections to the new functions names and error message wording
Signed-off-by: TRodziewicz <tomasz.rodziewicz@mobica.com>
This commit is contained in:
@@ -237,7 +237,7 @@ int mbedtls_test_read_mpi( mbedtls_mpi *X, int radix, const char *s );
|
||||
* \note If the check fails, fail the test currently being run.
|
||||
*/
|
||||
#if defined(MBEDTLS_TEST_HOOKS)
|
||||
void mbedtls_test_hook_value_check( int test, const char * file, int line );
|
||||
void mbedtls_test_assert_test( int test, const char * file, int line );
|
||||
#endif
|
||||
|
||||
#endif /* TEST_HELPERS_H */
|
||||
|
||||
@@ -276,11 +276,11 @@ int mbedtls_test_read_mpi( mbedtls_mpi *X, int radix, const char *s )
|
||||
#endif
|
||||
|
||||
#if defined(MBEDTLS_TEST_HOOKS)
|
||||
void mbedtls_test_hook_value_check( int test, const char * file, int line )
|
||||
void mbedtls_test_assert_test( int test, const char * file, int line )
|
||||
{
|
||||
if ( !test )
|
||||
{
|
||||
mbedtls_test_fail( "Wrong value in test", line, file );
|
||||
mbedtls_test_fail( "Test hook - test assertion failed.", line, file );
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
||||
@@ -239,9 +239,13 @@ int main( int argc, const char *argv[] )
|
||||
{
|
||||
#if defined(MBEDTLS_TEST_HOOKS) && defined (MBEDTLS_ERROR_C)
|
||||
mbedtls_test_hook_error_add = &mbedtls_test_err_add_check;
|
||||
mbedtls_test_hook_value = &mbedtls_test_hook_value_check;
|
||||
#endif
|
||||
|
||||
#if defined(MBEDTLS_TEST_HOOKS)
|
||||
mbedtls_test_hook_assert_test = &mbedtls_test_assert_test;
|
||||
#endif
|
||||
|
||||
|
||||
int ret = mbedtls_test_platform_setup();
|
||||
if( ret != 0 )
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user