Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

regression 1040: test interrupt notification #640

Closed
wants to merge 2 commits into from
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
34 changes: 34 additions & 0 deletions host/xtest/regression_1000.c
Original file line number Diff line number Diff line change
Expand Up @@ -3221,3 +3221,37 @@ static void xtest_tee_test_1039(ADBG_Case_t *c)

ADBG_CASE_DEFINE(regression, 1039, xtest_tee_test_1039,
"Test subkey verification");

static void xtest_tee_test_1040(ADBG_Case_t *c)
{
TEEC_Result res = TEEC_ERROR_GENERIC;
TEEC_Session session = { };
uint32_t ret_orig = 0;

/* 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 (res == TEEC_ERROR_ITEM_NOT_FOUND) {
Do_ADBG_Log(" - 1040 - skip test, pseudo TA not found");
return;
}
ADBG_EXPECT_TEEC_SUCCESS(c, res);

res = TEEC_InvokeCommand(&session, PTA_INVOKE_TESTS_CMD_IT_NOTIF_TESTS,
NULL, &ret_orig);
if (res != TEEC_SUCCESS) {
(void)ADBG_EXPECT_TEEC_ERROR_ORIGIN(c, TEEC_ORIGIN_TRUSTED_APP,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please remove these (void) casts.

ret_orig);
if (res == TEEC_ERROR_NOT_SUPPORTED) {
Do_ADBG_Log(" - 1040 - skip test, feature not "
"implemented");
goto out;
}
/* Error */
(void)ADBG_EXPECT_TEEC_SUCCESS(c, res);
}
out:
TEEC_CloseSession(&session);
}
ADBG_CASE_DEFINE(regression, 1040, xtest_tee_test_1040,
"Test interrupt notification to normal world");