Remove undesirable test

Signed-off-by: Dave Rodgman <dave.rodgman@arm.com>
This commit is contained in:
Dave Rodgman 2023-04-25 18:07:29 +01:00
parent 2e863ecde9
commit 4f30a6aa59
2 changed files with 1 additions and 8 deletions

View file

@ -301,11 +301,7 @@ void mpi_core_bitlen(char *input_X, int nr_bits)
mbedtls_mpi_uint *X = NULL;
size_t limbs;
if (strlen(input_X) == 0) {
limbs = 0;
} else {
TEST_EQUAL(mbedtls_test_read_mpi_core(&X, &limbs, input_X), 0);
}
TEST_EQUAL(mbedtls_test_read_mpi_core(&X, &limbs, input_X), 0);
TEST_EQUAL(mbedtls_mpi_core_bitlen(X, limbs), nr_bits);
exit:

View file

@ -155,9 +155,6 @@ mpi_core_bitlen:"10":5
Test mbedtls_mpi_core_bitlen 0x0a
mpi_core_bitlen:"a":4
Test mbedtls_mpi_core_bitlen: 0 limbs
mpi_core_bitlen:"":0
Test mbedtls_mpi_core_bitlen: 0 (1 limb)
mpi_core_bitlen:"0":0