mirror of
https://github.com/Mbed-TLS/mbedtls.git
synced 2025-07-28 00:21:48 +03:00
More precise recognition of key policy negative tests
The test function asymmetric_signature_key_policy combines positive and negative tests inside the code, so it doesn't take a status as its last argument. Signed-off-by: Gilles Peskine <Gilles.Peskine@arm.com>
This commit is contained in:
@ -164,7 +164,7 @@ def systematic_dependencies(file_name, function_name, arguments):
|
||||
# Run key policy negative tests even if the algorithm to attempt performing
|
||||
# is not supported.
|
||||
if function_name.endswith('_key_policy') and \
|
||||
arguments[-1] != 'PSA_SUCCESS':
|
||||
arguments[-1].startswith('PSA_ERROR_'):
|
||||
arguments[-2] = ''
|
||||
|
||||
for arg in arguments:
|
||||
|
Reference in New Issue
Block a user