Use better test macro
Signed-off-by: Gabor Mezei <gabor.mezei@arm.com>
This commit is contained in:
parent
d6441da4c5
commit
d71eb0c3ac
1 changed files with 4 additions and 4 deletions
|
@ -777,7 +777,7 @@ void mpi_core_cond_assign( data_t * input_X,
|
|||
size_t copy_limbs = CHARS_TO_LIMBS( input_len );
|
||||
size_t len = limbs * sizeof( mbedtls_mpi_uint );
|
||||
|
||||
TEST_ASSERT( limbs_X == limbs_Y );
|
||||
TEST_EQUAL( limbs_X, limbs_Y );
|
||||
TEST_ASSERT( copy_limbs <= limbs );
|
||||
|
||||
ASSERT_ALLOC( X, len );
|
||||
|
@ -836,7 +836,7 @@ void mpi_core_cond_swap( data_t * input_X,
|
|||
size_t copy_limbs = CHARS_TO_LIMBS( input_len );
|
||||
size_t len = limbs * sizeof( mbedtls_mpi_uint );
|
||||
|
||||
TEST_ASSERT( limbs_X == limbs_Y );
|
||||
TEST_EQUAL( limbs_X, limbs_Y );
|
||||
TEST_ASSERT( copy_limbs <= limbs );
|
||||
|
||||
ASSERT_ALLOC( tmp_X, len );
|
||||
|
@ -912,7 +912,7 @@ void mpi_mod_raw_cond_assign( data_t * input_X,
|
|||
size_t copy_limbs = CHARS_TO_LIMBS( input_len );
|
||||
size_t len = limbs * sizeof( mbedtls_mpi_uint );
|
||||
|
||||
TEST_ASSERT( limbs_X == limbs_Y );
|
||||
TEST_EQUAL( limbs_X, limbs_Y );
|
||||
TEST_ASSERT( copy_limbs <= limbs );
|
||||
|
||||
ASSERT_ALLOC( X, len );
|
||||
|
@ -986,7 +986,7 @@ void mpi_mod_raw_cond_swap( data_t * input_X,
|
|||
size_t copy_limbs = CHARS_TO_LIMBS( input_len );
|
||||
size_t len = limbs * sizeof( mbedtls_mpi_uint );
|
||||
|
||||
TEST_ASSERT( limbs_X == limbs_Y );
|
||||
TEST_EQUAL( limbs_X, limbs_Y );
|
||||
TEST_ASSERT( copy_limbs <= limbs );
|
||||
|
||||
ASSERT_ALLOC( tmp_X, len );
|
||||
|
|
Loading…
Reference in a new issue