1
0
mirror of https://github.com/Mbed-TLS/mbedtls.git synced 2025-08-08 17:42:09 +03:00

Add ASSERT_FALSE macro for tests

Signed-off-by: Agathiyan Bragadeesh <agathiyan.bragadeesh2@arm.com>
This commit is contained in:
Agathiyan Bragadeesh
2023-07-14 17:28:27 +01:00
parent db084d16ea
commit ebb40bc336
10 changed files with 27 additions and 17 deletions

View File

@@ -121,7 +121,7 @@ void mbedtls_byteswap(char *input_str, int size, char *expected_str)
r = MBEDTLS_BSWAP64(input);
break;
default:
TEST_ASSERT(!"size must be 16, 32 or 64");
ASSERT_FALSE("size must be 16, 32 or 64");
}
TEST_EQUAL(r, expected);