summaryrefslogtreecommitdiff
path: root/testsuites/validation/tr-mtx-seize-try.c
diff options
context:
space:
mode:
Diffstat (limited to 'testsuites/validation/tr-mtx-seize-try.c')
-rw-r--r--testsuites/validation/tr-mtx-seize-try.c18
1 files changed, 9 insertions, 9 deletions
diff --git a/testsuites/validation/tr-mtx-seize-try.c b/testsuites/validation/tr-mtx-seize-try.c
index a9e2c918a4..c7ac9b3745 100644
--- a/testsuites/validation/tr-mtx-seize-try.c
+++ b/testsuites/validation/tr-mtx-seize-try.c
@@ -132,9 +132,9 @@ static const char * const ScoreMtxReqSeizeTry_PreDesc_Owner[] = {
};
static const char * const ScoreMtxReqSeizeTry_PreDesc_Priority[] = {
- "Higher",
- "Equal",
- "Lower",
+ "LT",
+ "EQ",
+ "GT",
"NA"
};
@@ -193,16 +193,16 @@ static void ScoreMtxReqSeizeTry_Pre_Priority_Prepare(
)
{
switch ( state ) {
- case ScoreMtxReqSeizeTry_Pre_Priority_Higher: {
+ case ScoreMtxReqSeizeTry_Pre_Priority_LT: {
/*
* Where the mutex provides a priority ceiling, while the calling thread
- * has a current priority greater than the priority ceiling.
+ * has a current priority less than the priority ceiling.
*/
ctx->priority_before = ctx->tq_ctx->priority_ceiling - 1;
break;
}
- case ScoreMtxReqSeizeTry_Pre_Priority_Equal: {
+ case ScoreMtxReqSeizeTry_Pre_Priority_EQ: {
/*
* Where the mutex provides a priority ceiling, while the calling thread
* has a current priority equal to the priority ceiling.
@@ -211,10 +211,10 @@ static void ScoreMtxReqSeizeTry_Pre_Priority_Prepare(
break;
}
- case ScoreMtxReqSeizeTry_Pre_Priority_Lower: {
+ case ScoreMtxReqSeizeTry_Pre_Priority_GT: {
/*
* Where the mutex provides a priority ceiling, while the calling thread
- * has a current priority lower than the priority ceiling.
+ * has a current priority greater than the priority ceiling.
*/
ctx->priority_before = ctx->tq_ctx->priority_ceiling + 1;
break;
@@ -539,7 +539,7 @@ void ScoreMtxReqSeizeTry_Run( TQMtxContext *tq_ctx )
++ctx->pcs[ 0 ]
) {
for (
- ctx->pcs[ 1 ] = ScoreMtxReqSeizeTry_Pre_Priority_Higher;
+ ctx->pcs[ 1 ] = ScoreMtxReqSeizeTry_Pre_Priority_LT;
ctx->pcs[ 1 ] < ScoreMtxReqSeizeTry_Pre_Priority_NA;
++ctx->pcs[ 1 ]
) {