Test: ITS: fix psa_its_get_info error code
The negative test case for psa_its_get_info() must return
PSA_ERROR_INVALID_ARGUMENT instead of PSA_ERROR_PROGRAMMER_ERROR
as it is described in the ITS interface header file
(psa/internal_trusted_storage.h).
Change-Id: I8d0d56396d5f0556ce2cf16ff9f4fb8552ef618a
Signed-off-by: David Vincze <david.vincze@arm.com>
diff --git a/tests_reg/test/secure_fw/suites/its/non_secure/psa_its_ns_interface_testsuite.c b/tests_reg/test/secure_fw/suites/its/non_secure/psa_its_ns_interface_testsuite.c
index c134863..8e5d4ff 100644
--- a/tests_reg/test/secure_fw/suites/its/non_secure/psa_its_ns_interface_testsuite.c
+++ b/tests_reg/test/secure_fw/suites/its/non_secure/psa_its_ns_interface_testsuite.c
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2019-2023, Arm Limited. All rights reserved.
+ * SPDX-FileCopyrightText: Copyright The TrustedFirmware-M Contributors
*
* SPDX-License-Identifier: BSD-3-Clause
*
@@ -103,8 +103,8 @@
}
status = psa_its_get_info(uid, NULL);
- if (status != PSA_ERROR_PROGRAMMER_ERROR) {
- TEST_FAIL("Get info with null pointer should return PSA_ERROR_PROGRAMMER_ERROR");
+ if (status != PSA_ERROR_INVALID_ARGUMENT) {
+ TEST_FAIL("Get info with null pointer should return PSA_ERROR_INVALID_ARGUMENT");
return;
}