Skip to content

Commit

Permalink
[review] xtest: regression: add case 1040
Browse files Browse the repository at this point in the history
Addressing comments.

Signed-off-by: Jens Wiklander <jens.wiklander@linaro.org>
  • Loading branch information
jenswi-linaro committed Sep 25, 2023
1 parent ac2cd38 commit bb276ce
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions host/xtest/regression_1000.c
Original file line number Diff line number Diff line change
Expand Up @@ -3285,9 +3285,13 @@ static void *test_1040_thread(void *arg)
TEEC_Result res = TEEC_SUCCESS;
uint32_t err_orig = 0;
TEEC_Session session = { };
size_t loop_count = 100;
size_t n = 0;

while (n < 100) {
if (level == 0)
loop_count /= 2;

while (n < loop_count) {
res = xtest_teec_open_session(&session, &sims_test_ta_uuid,
NULL, &err_orig);
if (res) {
Expand Down Expand Up @@ -3335,7 +3339,6 @@ static void xtest_tee_test_1040(ADBG_Case_t *c)
ADBG_EXPECT_TEEC_SUCCESS(c, arg[n].res);
}
Do_ADBG_EndSubCase(c, "Concurent invoke with panic in TA");

}
ADBG_CASE_DEFINE(regression, 1040, xtest_tee_test_1040,
"Test panic in concurrent open/invoke/close session");

0 comments on commit bb276ce

Please sign in to comment.