From d71eb0c3ac1295f70506e97ef73b612e8e526cb6 Mon Sep 17 00:00:00 2001 From: Gabor Mezei Date: Mon, 10 Oct 2022 13:09:04 +0200 Subject: [PATCH] Use better test macro Signed-off-by: Gabor Mezei --- tests/suites/test_suite_mpi.function | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/tests/suites/test_suite_mpi.function b/tests/suites/test_suite_mpi.function index bfadde9d3..f1673814f 100644 --- a/tests/suites/test_suite_mpi.function +++ b/tests/suites/test_suite_mpi.function @@ -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 );