summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: a319852)
raw | patch | inline | side by side (parent: a319852)
author | Etienne Carriere <etienne.carriere@linaro.org> | |
Thu, 26 Oct 2017 07:49:04 +0000 (09:49 +0200) | ||
committer | Jérôme Forissier <jerome.forissier@linaro.org> | |
Thu, 26 Oct 2017 11:05:14 +0000 (13:05 +0200) |
Following tests depends on pseudo TAs in the TEE core but xtest is
not expected to report an error if the pTAs are not found.
This change adds some verbosity to help one to understand to test
was skipped and restricts allowed error status to item-not-found.
Signed-off-by: Etienne Carriere <etienne.carriere@linaro.org>
Acked-by: Jens Wiklander <jens.wiklander@linaro.org>
not expected to report an error if the pTAs are not found.
This change adds some verbosity to help one to understand to test
was skipped and restricts allowed error status to item-not-found.
Signed-off-by: Etienne Carriere <etienne.carriere@linaro.org>
Acked-by: Jens Wiklander <jens.wiklander@linaro.org>
host/xtest/regression_1000.c | patch | blob | history |
index 610c4cec0264760a2538c5d65c999f47a2900259..14f70b36a30fe3f8c12641eebc312c58b84ede30 100644 (file)
TEEC_Session session = { 0 };
uint32_t ret_orig;
+ /* Pseudo TA is optional: warn and nicely exit if not found */
res = xtest_teec_open_session(&session, &pta_invoke_tests_ta_uuid, NULL,
&ret_orig);
- /*
- * If the static TA (which is optional) isn't available, skip this
- * test.
- */
- if (res != TEEC_SUCCESS)
+ if (res == TEEC_ERROR_ITEM_NOT_FOUND) {
+ Do_ADBG_Log(" - 1001 - skip test, pseudo TA not found");
return;
+ }
+ ADBG_EXPECT_TEEC_SUCCESS(c, res);
(void)ADBG_EXPECT_TEEC_SUCCESS(c, TEEC_InvokeCommand(
&session, PTA_INVOKE_TESTS_CMD_SELF_TESTS, NULL, &ret_orig));
uint8_t exp_sum = 0;
size_t n;
+ /* Pseudo TA is optional: warn and nicely exit if not found */
res = xtest_teec_open_session(&session, &pta_invoke_tests_ta_uuid, NULL,
&ret_orig);
- /*
- * If the pseudo TA (which is optional) isn't available, skip this
- * test.
- */
- if (res != TEEC_SUCCESS)
+ if (res == TEEC_ERROR_ITEM_NOT_FOUND) {
+ Do_ADBG_Log(" - 1002 - skip test, pseudo TA not found");
return;
+ }
+ ADBG_EXPECT_TEEC_SUCCESS(c, res);
op.paramTypes = TEEC_PARAM_TYPES(TEEC_MEMREF_TEMP_INOUT, TEEC_NONE,
TEEC_NONE, TEEC_NONE);
TEEC_Session session = { 0 };
uint32_t ret_orig;
+ /* Pseudo TA is optional: warn and nicely exit if not found */
res = xtest_teec_open_session(&session, &pta_invoke_tests_ta_uuid, NULL,
&ret_orig);
- /*
- * If the static TA (which is optional) isn't available, skip this
- * test.
- */
- if (res != TEEC_SUCCESS)
+ if (res == TEEC_ERROR_ITEM_NOT_FOUND) {
+ Do_ADBG_Log(" - 1015 - skip test, pseudo TA not found");
return;
+ }
+ ADBG_EXPECT_TEEC_SUCCESS(c, res);
ADBG_EXPECT_TEEC_SUCCESS(c,
TEEC_InvokeCommand(&session, PTA_INVOKE_TESTS_CMD_FS_HTREE,