mirror of
https://github.com/yuzu-emu/mbedtls
synced 2024-11-24 10:28:35 +00:00
Fix test macro that was too lenient
Previously, one could change the definition of AES_VALIDATE_RET() to return some other code than MBEDTLS_ERR_AES_BAD_INPUT_DATA, and the test suite wouldn't notice. Now this modification would make the suite fail as expected.
This commit is contained in:
parent
840af0a9ae
commit
acfdc623d2
1 changed files with 1 additions and 1 deletions
|
@ -133,7 +133,7 @@ typedef enum
|
||||||
#define TEST_INVALID_PARAM_RET( PARAM_ERR_VALUE, TEST ) \
|
#define TEST_INVALID_PARAM_RET( PARAM_ERR_VALUE, TEST ) \
|
||||||
do { \
|
do { \
|
||||||
test_info.paramfail_test_state = PARAMFAIL_TESTSTATE_PENDING; \
|
test_info.paramfail_test_state = PARAMFAIL_TESTSTATE_PENDING; \
|
||||||
if( (TEST) != (PARAM_ERR_VALUE) && \
|
if( (TEST) != (PARAM_ERR_VALUE) || \
|
||||||
test_info.paramfail_test_state != PARAMFAIL_TESTSTATE_CALLED ) \
|
test_info.paramfail_test_state != PARAMFAIL_TESTSTATE_CALLED ) \
|
||||||
{ \
|
{ \
|
||||||
test_fail( #TEST, __LINE__, __FILE__ ); \
|
test_fail( #TEST, __LINE__, __FILE__ ); \
|
||||||
|
|
Loading…
Reference in a new issue