@@ -254,8 +254,8 @@ static void ecjpake_do_round(psa_algorithm_t alg, unsigned int primitive,
254254 /* Error didn't trigger, make test fail */
255255 if ((err_stage >= ERR_INJECT_ROUND1_SERVER_KEY_SHARE_PART1) &&
256256 (err_stage <= ERR_INJECT_ROUND1_SERVER_ZK_PROOF_PART2)) {
257- TEST_ASSERT (
258- ! "One of the last psa_pake_input() calls should have returned the expected error.");
257+ TEST_FAIL (
258+ "One of the last psa_pake_input() calls should have returned the expected error.");
259259 }
260260 }
261261
@@ -348,8 +348,8 @@ static void ecjpake_do_round(psa_algorithm_t alg, unsigned int primitive,
348348 /* Error didn't trigger, make test fail */
349349 if ((err_stage >= ERR_INJECT_ROUND1_SERVER_KEY_SHARE_PART1) &&
350350 (err_stage <= ERR_INJECT_ROUND1_SERVER_ZK_PROOF_PART2)) {
351- TEST_ASSERT (
352- ! "One of the last psa_pake_input() calls should have returned the expected error.");
351+ TEST_FAIL (
352+ "One of the last psa_pake_input() calls should have returned the expected error.");
353353 }
354354 }
355355
@@ -381,8 +381,8 @@ static void ecjpake_do_round(psa_algorithm_t alg, unsigned int primitive,
381381 /* Error didn't trigger, make test fail */
382382 if ((err_stage >= ERR_INJECT_ROUND1_CLIENT_KEY_SHARE_PART1) &&
383383 (err_stage <= ERR_INJECT_ROUND1_CLIENT_ZK_PROOF_PART2)) {
384- TEST_ASSERT (
385- ! "One of the last psa_pake_input() calls should have returned the expected error.");
384+ TEST_FAIL (
385+ "One of the last psa_pake_input() calls should have returned the expected error.");
386386 }
387387
388388 break;
@@ -437,8 +437,8 @@ static void ecjpake_do_round(psa_algorithm_t alg, unsigned int primitive,
437437 /* Error didn't trigger, make test fail */
438438 if ((err_stage >= ERR_INJECT_ROUND2_SERVER_KEY_SHARE) &&
439439 (err_stage <= ERR_INJECT_ROUND2_SERVER_ZK_PROOF)) {
440- TEST_ASSERT (
441- ! "One of the last psa_pake_input() calls should have returned the expected error.");
440+ TEST_FAIL (
441+ "One of the last psa_pake_input() calls should have returned the expected error.");
442442 }
443443 }
444444
@@ -501,8 +501,8 @@ static void ecjpake_do_round(psa_algorithm_t alg, unsigned int primitive,
501501 /* Error didn't trigger, make test fail */
502502 if ((err_stage >= ERR_INJECT_ROUND2_SERVER_KEY_SHARE) &&
503503 (err_stage <= ERR_INJECT_ROUND2_SERVER_ZK_PROOF)) {
504- TEST_ASSERT (
505- ! "One of the last psa_pake_input() calls should have returned the expected error.");
504+ TEST_FAIL (
505+ "One of the last psa_pake_input() calls should have returned the expected error.");
506506 }
507507 }
508508
@@ -528,8 +528,8 @@ static void ecjpake_do_round(psa_algorithm_t alg, unsigned int primitive,
528528 /* Error didn't trigger, make test fail */
529529 if ((err_stage >= ERR_INJECT_ROUND2_CLIENT_KEY_SHARE) &&
530530 (err_stage <= ERR_INJECT_ROUND2_CLIENT_ZK_PROOF)) {
531- TEST_ASSERT (
532- ! "One of the last psa_pake_input() calls should have returned the expected error.");
531+ TEST_FAIL (
532+ "One of the last psa_pake_input() calls should have returned the expected error.");
533533 }
534534
535535 break;
0 commit comments