blob: abedd32c497ac528661c4c3081ecec78572a5811 [file] [log] [blame]
Summer Qin36f79f72022-07-05 14:53:35 +08001From 1f7a61b48ec3c6ac8cbefc1c4a49e40477f3ae00 Mon Sep 17 00:00:00 2001
Summer Qin2e9fe862022-06-17 15:58:16 +08002From: Summer Qin <summer.qin@arm.com>
3Date: Fri, 17 Jun 2022 15:42:55 +0800
Summer Qin36f79f72022-07-05 14:53:35 +08004Subject: [PATCH 3/4] Fix 2 issues in FF test
Summer Qin2e9fe862022-06-17 15:58:16 +08005
6- Disable secure test when testing version policy. Otherwise, the
7received signal is not matched.
8- In test 27, set wrong parameter and let SPM return expected
9PSA_ERROR_PROGRAMMER_ERROR, instead of making test to directly
10return the error code.
11
12Signed-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
22diff --git a/api-tests/ff/ipc/test_i005/test_entry_i005.c b/api-tests/ff/ipc/test_i005/test_entry_i005.c
23index 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;
35diff --git a/api-tests/ff/ipc/test_i006/test_entry_i006.c b/api-tests/ff/ipc/test_i006/test_entry_i006.c
36index 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;
48diff --git a/api-tests/ff/ipc/test_i007/test_entry_i007.c b/api-tests/ff/ipc/test_i007/test_entry_i007.c
49index 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;
61diff --git a/api-tests/ff/ipc/test_i010/test_entry_i010.c b/api-tests/ff/ipc/test_i010/test_entry_i010.c
62index 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;
74diff --git a/api-tests/ff/ipc/test_i011/test_entry_i011.c b/api-tests/ff/ipc/test_i011/test_entry_i011.c
75index 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;
87diff --git a/api-tests/ff/ipc/test_i027/test_i027.c b/api-tests/ff/ipc/test_i027/test_i027.c
88index 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--
1012.17.1
102