From 2189fda914aad12ed2ba8f5258ccf1e4fba0d487 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Manuel=20P=C3=A9gouri=C3=A9-Gonnard?= Date: Thu, 9 Feb 2023 09:18:22 +0100 Subject: [PATCH] Use TEST_EQUAL in one more place in test_suite_md MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The only remaining occurrences of TEST_ASSERT are now pointer comparison, to NULL or to a reference md_info. That is, the output of the following command is empty: grep TEST_ASSERT tests/suites/test_suite_md.function | egrep -v '= NULL|== md_info|md_info ==' Signed-off-by: Manuel Pégourié-Gonnard --- tests/suites/test_suite_md.function | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/suites/test_suite_md.function b/tests/suites/test_suite_md.function index 27c2063cb8..2f60c4e999 100644 --- a/tests/suites/test_suite_md.function +++ b/tests/suites/test_suite_md.function @@ -50,7 +50,7 @@ void md_null_args() mbedtls_md_init(&ctx); TEST_EQUAL(0, mbedtls_md_get_size(NULL)); - TEST_ASSERT(mbedtls_md_get_type(NULL) == MBEDTLS_MD_NONE); + TEST_EQUAL(mbedtls_md_get_type(NULL), MBEDTLS_MD_NONE); TEST_ASSERT(mbedtls_md_get_name(NULL) == NULL); TEST_ASSERT(mbedtls_md_info_from_string(NULL) == NULL);