mirror of
https://github.com/Mbed-TLS/mbedtls.git
synced 2026-04-13 07:31:37 +02:00
mbedtls_test_fail does not copy the failure explanation string, so passing a string on the stack doesn't work. This fixes a garbage message that would appear if a test triggered a non-implemented code path. More generally, just use TEST_ASSERT instead of explicitly calling mbedtls_test_fail, since we aren't playing any tricks with the error location. Signed-off-by: Gilles Peskine <Gilles.Peskine@arm.com> Signed-off-by: TRodziewicz <rodziewicz@gmail.com>