mirror of
https://git.yoctoproject.org/meta-arm
synced 2026-05-09 17:40:46 +00:00
arm-bsp/optee-test: tc: Limit xtest to a single thread
When multiple threads are allowed xtest will fail and leave the system in a bad state after repeated runs. Signed-off-by: Ben Horgan <ben.horgan@arm.com> Change-Id: I16f07df1a362540560975deaa5a291a68c332bfb Signed-off-by: Jon Mason <jon.mason@arm.com>
This commit is contained in:
+55
@@ -0,0 +1,55 @@
|
|||||||
|
From 73bef38c5697cd6bd3ddbe9046681087f4f6454e Mon Sep 17 00:00:00 2001
|
||||||
|
From: Ben Horgan <ben.horgan@arm.com>
|
||||||
|
Date: Thu, 27 Jan 2022 10:33:04 +0000
|
||||||
|
Subject: [PATCH] xtest: Limit tests to a single thread
|
||||||
|
|
||||||
|
Signed-off-by: Ben Horgan <ben.horgan@arm.com>
|
||||||
|
Upstream-Status: Inappropriate [Workaround for intermittent failures]
|
||||||
|
---
|
||||||
|
host/xtest/regression_1000.c | 2 +-
|
||||||
|
host/xtest/regression_2000.c | 2 +-
|
||||||
|
host/xtest/regression_6000.c | 2 +-
|
||||||
|
3 files changed, 3 insertions(+), 3 deletions(-)
|
||||||
|
|
||||||
|
diff --git a/host/xtest/regression_1000.c b/host/xtest/regression_1000.c
|
||||||
|
index 9ee9d02..82d1def 100644
|
||||||
|
--- a/host/xtest/regression_1000.c
|
||||||
|
+++ b/host/xtest/regression_1000.c
|
||||||
|
@@ -1080,7 +1080,7 @@ static void *test_1013_thread(void *arg)
|
||||||
|
return NULL;
|
||||||
|
}
|
||||||
|
|
||||||
|
-#define NUM_THREADS 3
|
||||||
|
+#define NUM_THREADS 1
|
||||||
|
|
||||||
|
static void xtest_tee_test_1013_single(ADBG_Case_t *c, double *mean_concurrency,
|
||||||
|
const TEEC_UUID *uuid)
|
||||||
|
diff --git a/host/xtest/regression_2000.c b/host/xtest/regression_2000.c
|
||||||
|
index 0591a42..a9f4b95 100644
|
||||||
|
--- a/host/xtest/regression_2000.c
|
||||||
|
+++ b/host/xtest/regression_2000.c
|
||||||
|
@@ -499,7 +499,7 @@ out:
|
||||||
|
return NULL;
|
||||||
|
}
|
||||||
|
|
||||||
|
-#define NUM_THREADS 3
|
||||||
|
+#define NUM_THREADS 1
|
||||||
|
|
||||||
|
static void xtest_tee_test_2002(ADBG_Case_t *c)
|
||||||
|
{
|
||||||
|
diff --git a/host/xtest/regression_6000.c b/host/xtest/regression_6000.c
|
||||||
|
index ca1c254..d67ea7f 100644
|
||||||
|
--- a/host/xtest/regression_6000.c
|
||||||
|
+++ b/host/xtest/regression_6000.c
|
||||||
|
@@ -1568,7 +1568,7 @@ exit:
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
-#define NUM_THREADS 4
|
||||||
|
+#define NUM_THREADS 1
|
||||||
|
static void xtest_tee_test_6016_loop(ADBG_Case_t *c, uint32_t storage_id)
|
||||||
|
{
|
||||||
|
struct test_6016_thread_arg arg[NUM_THREADS] = { };
|
||||||
|
--
|
||||||
|
2.17.1
|
||||||
|
|
||||||
@@ -1,3 +1,8 @@
|
|||||||
# TC0 specific configuration
|
# TC specific configuration
|
||||||
|
|
||||||
|
FILESEXTRAPATHS:prepend := "${THISDIR}/files/optee-test/tc:"
|
||||||
|
SRC_URI:append:tc = " \
|
||||||
|
file://0001-xtest-Limit-tests-to-a-single-thread.patch \
|
||||||
|
"
|
||||||
|
|
||||||
COMPATIBLE_MACHINE = "(tc?)"
|
COMPATIBLE_MACHINE = "(tc?)"
|
||||||
|
|||||||
Reference in New Issue
Block a user