Summer Qin | 36f79f7 | 2022-07-05 14:53:35 +0800 | [diff] [blame] | 1 | From 1f7a61b48ec3c6ac8cbefc1c4a49e40477f3ae00 Mon Sep 17 00:00:00 2001 |
Summer Qin | 2e9fe86 | 2022-06-17 15:58:16 +0800 | [diff] [blame] | 2 | From: Summer Qin <summer.qin@arm.com> |
| 3 | Date: Fri, 17 Jun 2022 15:42:55 +0800 |
Summer Qin | 36f79f7 | 2022-07-05 14:53:35 +0800 | [diff] [blame] | 4 | Subject: [PATCH 3/4] Fix 2 issues in FF test |
Summer Qin | 2e9fe86 | 2022-06-17 15:58:16 +0800 | [diff] [blame] | 5 | |
| 6 | - Disable secure test when testing version policy. Otherwise, the |
| 7 | received signal is not matched. |
| 8 | - In test 27, set wrong parameter and let SPM return expected |
| 9 | PSA_ERROR_PROGRAMMER_ERROR, instead of making test to directly |
| 10 | return the error code. |
| 11 | |
| 12 | Signed-off-by: Summer Qin <summer.qin@arm.com> |
| 13 | --- |
| 14 | api-tests/ff/ipc/test_i005/test_entry_i005.c | 2 +- |
| 15 | api-tests/ff/ipc/test_i006/test_entry_i006.c | 2 +- |
| 16 | api-tests/ff/ipc/test_i007/test_entry_i007.c | 2 +- |
| 17 | api-tests/ff/ipc/test_i010/test_entry_i010.c | 2 +- |
| 18 | api-tests/ff/ipc/test_i011/test_entry_i011.c | 2 +- |
| 19 | api-tests/ff/ipc/test_i027/test_i027.c | 2 +- |
| 20 | 6 files changed, 6 insertions(+), 6 deletions(-) |
| 21 | |
| 22 | diff --git a/api-tests/ff/ipc/test_i005/test_entry_i005.c b/api-tests/ff/ipc/test_i005/test_entry_i005.c |
| 23 | index 099d590..78c0ad5 100644 |
| 24 | --- a/api-tests/ff/ipc/test_i005/test_entry_i005.c |
| 25 | +++ b/api-tests/ff/ipc/test_i005/test_entry_i005.c |
| 26 | @@ -40,7 +40,7 @@ void test_entry(val_api_t *val_api, psa_api_t *psa_api) |
| 27 | } |
| 28 | |
| 29 | /* Execute list of tests available in test[num]_client_tests_list from Non-secure side*/ |
| 30 | - status = val->execute_non_secure_tests(TEST_NUM, test_i005_client_tests_list, TRUE); |
| 31 | + status = val->execute_non_secure_tests(TEST_NUM, test_i005_client_tests_list, FALSE); |
| 32 | if (VAL_ERROR(status)) |
| 33 | { |
| 34 | goto test_exit; |
| 35 | diff --git a/api-tests/ff/ipc/test_i006/test_entry_i006.c b/api-tests/ff/ipc/test_i006/test_entry_i006.c |
| 36 | index 13f0b7d..c9b2996 100644 |
| 37 | --- a/api-tests/ff/ipc/test_i006/test_entry_i006.c |
| 38 | +++ b/api-tests/ff/ipc/test_i006/test_entry_i006.c |
| 39 | @@ -40,7 +40,7 @@ void test_entry(val_api_t *val_api, psa_api_t *psa_api) |
| 40 | } |
| 41 | |
| 42 | /* Execute list of tests available in test[num]_client_tests_list from Non-secure side*/ |
| 43 | - status = val->execute_non_secure_tests(TEST_NUM, test_i006_client_tests_list, TRUE); |
| 44 | + status = val->execute_non_secure_tests(TEST_NUM, test_i006_client_tests_list, FALSE); |
| 45 | if (VAL_ERROR(status)) |
| 46 | { |
| 47 | goto test_exit; |
| 48 | diff --git a/api-tests/ff/ipc/test_i007/test_entry_i007.c b/api-tests/ff/ipc/test_i007/test_entry_i007.c |
| 49 | index 86ea352..e133488 100644 |
| 50 | --- a/api-tests/ff/ipc/test_i007/test_entry_i007.c |
| 51 | +++ b/api-tests/ff/ipc/test_i007/test_entry_i007.c |
| 52 | @@ -40,7 +40,7 @@ void test_entry(val_api_t *val_api, psa_api_t *psa_api) |
| 53 | } |
| 54 | |
| 55 | /* Execute list of tests available in test[num]_client_tests_list from Non-secure side*/ |
| 56 | - status = val->execute_non_secure_tests(TEST_NUM, test_i007_client_tests_list, TRUE); |
| 57 | + status = val->execute_non_secure_tests(TEST_NUM, test_i007_client_tests_list, FALSE); |
| 58 | if (VAL_ERROR(status)) |
| 59 | { |
| 60 | goto test_exit; |
| 61 | diff --git a/api-tests/ff/ipc/test_i010/test_entry_i010.c b/api-tests/ff/ipc/test_i010/test_entry_i010.c |
| 62 | index e0e72ef..7d30848 100644 |
| 63 | --- a/api-tests/ff/ipc/test_i010/test_entry_i010.c |
| 64 | +++ b/api-tests/ff/ipc/test_i010/test_entry_i010.c |
| 65 | @@ -40,7 +40,7 @@ void test_entry(val_api_t *val_api, psa_api_t *psa_api) |
| 66 | } |
| 67 | |
| 68 | /* Execute list of tests available in test[num]_client_tests_list from Non-secure side*/ |
| 69 | - status = val->execute_non_secure_tests(TEST_NUM, test_i010_client_tests_list, TRUE); |
| 70 | + status = val->execute_non_secure_tests(TEST_NUM, test_i010_client_tests_list, FALSE); |
| 71 | if (VAL_ERROR(status)) |
| 72 | { |
| 73 | goto test_exit; |
| 74 | diff --git a/api-tests/ff/ipc/test_i011/test_entry_i011.c b/api-tests/ff/ipc/test_i011/test_entry_i011.c |
| 75 | index a1ca9c7..c694c8f 100644 |
| 76 | --- a/api-tests/ff/ipc/test_i011/test_entry_i011.c |
| 77 | +++ b/api-tests/ff/ipc/test_i011/test_entry_i011.c |
| 78 | @@ -40,7 +40,7 @@ void test_entry(val_api_t *val_api, psa_api_t *psa_api) |
| 79 | } |
| 80 | |
| 81 | /* Execute list of tests available in test[num]_client_tests_list from Non-secure side*/ |
| 82 | - status = val->execute_non_secure_tests(TEST_NUM, test_i011_client_tests_list, TRUE); |
| 83 | + status = val->execute_non_secure_tests(TEST_NUM, test_i011_client_tests_list, FALSE); |
| 84 | if (VAL_ERROR(status)) |
| 85 | { |
| 86 | goto test_exit; |
| 87 | diff --git a/api-tests/ff/ipc/test_i027/test_i027.c b/api-tests/ff/ipc/test_i027/test_i027.c |
| 88 | index 9b74a58..93c766c 100644 |
| 89 | --- a/api-tests/ff/ipc/test_i027/test_i027.c |
| 90 | +++ b/api-tests/ff/ipc/test_i027/test_i027.c |
| 91 | @@ -78,7 +78,7 @@ int32_t client_test_psa_drop_connection(caller_security_t caller) |
| 92 | return VAL_STATUS_ERROR; |
| 93 | } |
| 94 | |
| 95 | - status_of_call = psa->call(handle, PSA_IPC_CALL, NULL, 0, NULL, 0); |
| 96 | + status_of_call = psa->call(handle, PSA_IPC_CALL, NULL, PSA_MAX_IOVEC, NULL, PSA_MAX_IOVEC); |
| 97 | |
| 98 | /* |
| 99 | * If the caller is in the NSPE, it is IMPLEMENTATION DEFINED whether |
| 100 | -- |
| 101 | 2.17.1 |
| 102 | |