mirror of
https://github.com/Mbed-TLS/mbedtls.git
synced 2026-04-11 06:40:47 +02:00
Fix test assert macro calls
The assert() macro in test is not available anymore. It is superseeded by TEST_HELPER_ASSERT().
This commit is contained in:
@@ -75,7 +75,7 @@ uint8_t receive_byte()
|
||||
c[1] = greentea_getc();
|
||||
c[2] = '\0';
|
||||
|
||||
assert( unhexify( &byte, c ) != 2 );
|
||||
TEST_HELPER_ASSERT( unhexify( &byte, c ) != 2 );
|
||||
return( byte );
|
||||
}
|
||||
|
||||
@@ -100,7 +100,7 @@ uint32_t receive_uint32()
|
||||
greentea_getc(),
|
||||
'\0'
|
||||
};
|
||||
assert( unhexify( &value, c ) != 8 );
|
||||
TEST_HELPER_ASSERT( unhexify( &value, c ) != 8 );
|
||||
return( (uint32_t)value );
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user