From 71689a0775f39d65b3c9f0a81b58394d0b04e534 Mon Sep 17 00:00:00 2001 From: Sebastian Huber Date: Wed, 30 Sep 2020 16:22:04 +0200 Subject: rtems: Canonicalize name and id checks Check the name followed by the id check in all create directives. Compare pointers against NULL. Fix formatting. --- .../validation/tc-message-construct-errors.c | 144 ++++++++-------- testsuites/validation/tc-task-construct-errors.c | 192 ++++++++++----------- 2 files changed, 168 insertions(+), 168 deletions(-) (limited to 'testsuites') diff --git a/testsuites/validation/tc-message-construct-errors.c b/testsuites/validation/tc-message-construct-errors.c index 2dad91dae4..69378e27c7 100644 --- a/testsuites/validation/tc-message-construct-errors.c +++ b/testsuites/validation/tc-message-construct-errors.c @@ -943,149 +943,149 @@ static const uint8_t RtemsMessageReqConstructErrors_TransitionMap[][ 1 ] = { }, { RtemsMessageReqConstructErrors_Post_Status_InvAddress }, { - RtemsMessageReqConstructErrors_Post_Status_InvAddress + RtemsMessageReqConstructErrors_Post_Status_InvName }, { - RtemsMessageReqConstructErrors_Post_Status_InvAddress + RtemsMessageReqConstructErrors_Post_Status_InvName }, { - RtemsMessageReqConstructErrors_Post_Status_InvAddress + RtemsMessageReqConstructErrors_Post_Status_InvName }, { - RtemsMessageReqConstructErrors_Post_Status_InvAddress + RtemsMessageReqConstructErrors_Post_Status_InvName }, { - RtemsMessageReqConstructErrors_Post_Status_InvAddress + RtemsMessageReqConstructErrors_Post_Status_InvName }, { - RtemsMessageReqConstructErrors_Post_Status_InvAddress + RtemsMessageReqConstructErrors_Post_Status_InvName }, { - RtemsMessageReqConstructErrors_Post_Status_InvAddress + RtemsMessageReqConstructErrors_Post_Status_InvName }, { - RtemsMessageReqConstructErrors_Post_Status_InvAddress + RtemsMessageReqConstructErrors_Post_Status_InvName }, { - RtemsMessageReqConstructErrors_Post_Status_InvAddress + RtemsMessageReqConstructErrors_Post_Status_InvName }, { - RtemsMessageReqConstructErrors_Post_Status_InvAddress + RtemsMessageReqConstructErrors_Post_Status_InvName }, { - RtemsMessageReqConstructErrors_Post_Status_InvAddress + RtemsMessageReqConstructErrors_Post_Status_InvName }, { - RtemsMessageReqConstructErrors_Post_Status_InvAddress + RtemsMessageReqConstructErrors_Post_Status_InvName }, { - RtemsMessageReqConstructErrors_Post_Status_InvAddress + RtemsMessageReqConstructErrors_Post_Status_InvName }, { - RtemsMessageReqConstructErrors_Post_Status_InvAddress + RtemsMessageReqConstructErrors_Post_Status_InvName }, { - RtemsMessageReqConstructErrors_Post_Status_InvAddress + RtemsMessageReqConstructErrors_Post_Status_InvName }, { - RtemsMessageReqConstructErrors_Post_Status_InvAddress + RtemsMessageReqConstructErrors_Post_Status_InvName }, { - RtemsMessageReqConstructErrors_Post_Status_InvAddress + RtemsMessageReqConstructErrors_Post_Status_InvName }, { - RtemsMessageReqConstructErrors_Post_Status_InvAddress + RtemsMessageReqConstructErrors_Post_Status_InvName }, { - RtemsMessageReqConstructErrors_Post_Status_InvAddress + RtemsMessageReqConstructErrors_Post_Status_InvName }, { - RtemsMessageReqConstructErrors_Post_Status_InvAddress + RtemsMessageReqConstructErrors_Post_Status_InvName }, { - RtemsMessageReqConstructErrors_Post_Status_InvAddress + RtemsMessageReqConstructErrors_Post_Status_InvName }, { - RtemsMessageReqConstructErrors_Post_Status_InvAddress + RtemsMessageReqConstructErrors_Post_Status_InvName }, { - RtemsMessageReqConstructErrors_Post_Status_InvAddress + RtemsMessageReqConstructErrors_Post_Status_InvName }, { - RtemsMessageReqConstructErrors_Post_Status_InvAddress + RtemsMessageReqConstructErrors_Post_Status_InvName }, { - RtemsMessageReqConstructErrors_Post_Status_InvAddress + RtemsMessageReqConstructErrors_Post_Status_InvName }, { - RtemsMessageReqConstructErrors_Post_Status_InvAddress + RtemsMessageReqConstructErrors_Post_Status_InvName }, { - RtemsMessageReqConstructErrors_Post_Status_InvAddress + RtemsMessageReqConstructErrors_Post_Status_InvName }, { - RtemsMessageReqConstructErrors_Post_Status_InvAddress + RtemsMessageReqConstructErrors_Post_Status_InvName }, { - RtemsMessageReqConstructErrors_Post_Status_InvAddress + RtemsMessageReqConstructErrors_Post_Status_InvName }, { - RtemsMessageReqConstructErrors_Post_Status_InvAddress + RtemsMessageReqConstructErrors_Post_Status_InvName }, { - RtemsMessageReqConstructErrors_Post_Status_InvAddress + RtemsMessageReqConstructErrors_Post_Status_InvName }, { - RtemsMessageReqConstructErrors_Post_Status_InvAddress + RtemsMessageReqConstructErrors_Post_Status_InvName }, { - RtemsMessageReqConstructErrors_Post_Status_InvAddress + RtemsMessageReqConstructErrors_Post_Status_InvName }, { - RtemsMessageReqConstructErrors_Post_Status_InvAddress + RtemsMessageReqConstructErrors_Post_Status_InvName }, { - RtemsMessageReqConstructErrors_Post_Status_InvAddress + RtemsMessageReqConstructErrors_Post_Status_InvName }, { - RtemsMessageReqConstructErrors_Post_Status_InvAddress + RtemsMessageReqConstructErrors_Post_Status_InvName }, { - RtemsMessageReqConstructErrors_Post_Status_InvAddress + RtemsMessageReqConstructErrors_Post_Status_InvName }, { - RtemsMessageReqConstructErrors_Post_Status_InvAddress + RtemsMessageReqConstructErrors_Post_Status_InvName }, { - RtemsMessageReqConstructErrors_Post_Status_InvAddress + RtemsMessageReqConstructErrors_Post_Status_InvName }, { - RtemsMessageReqConstructErrors_Post_Status_InvAddress + RtemsMessageReqConstructErrors_Post_Status_InvName }, { - RtemsMessageReqConstructErrors_Post_Status_InvAddress + RtemsMessageReqConstructErrors_Post_Status_InvName }, { - RtemsMessageReqConstructErrors_Post_Status_InvAddress + RtemsMessageReqConstructErrors_Post_Status_InvName }, { - RtemsMessageReqConstructErrors_Post_Status_InvAddress + RtemsMessageReqConstructErrors_Post_Status_InvName }, { - RtemsMessageReqConstructErrors_Post_Status_InvAddress + RtemsMessageReqConstructErrors_Post_Status_InvName }, { - RtemsMessageReqConstructErrors_Post_Status_InvAddress + RtemsMessageReqConstructErrors_Post_Status_InvName }, { - RtemsMessageReqConstructErrors_Post_Status_InvAddress + RtemsMessageReqConstructErrors_Post_Status_InvName }, { - RtemsMessageReqConstructErrors_Post_Status_InvAddress + RtemsMessageReqConstructErrors_Post_Status_InvName }, { - RtemsMessageReqConstructErrors_Post_Status_InvAddress + RtemsMessageReqConstructErrors_Post_Status_InvName }, { - RtemsMessageReqConstructErrors_Post_Status_InvAddress + RtemsMessageReqConstructErrors_Post_Status_InvName }, { - RtemsMessageReqConstructErrors_Post_Status_InvAddress + RtemsMessageReqConstructErrors_Post_Status_InvName }, { - RtemsMessageReqConstructErrors_Post_Status_InvAddress + RtemsMessageReqConstructErrors_Post_Status_InvName }, { - RtemsMessageReqConstructErrors_Post_Status_InvAddress + RtemsMessageReqConstructErrors_Post_Status_InvName }, { - RtemsMessageReqConstructErrors_Post_Status_InvAddress + RtemsMessageReqConstructErrors_Post_Status_InvName }, { - RtemsMessageReqConstructErrors_Post_Status_InvAddress + RtemsMessageReqConstructErrors_Post_Status_InvName }, { - RtemsMessageReqConstructErrors_Post_Status_InvAddress + RtemsMessageReqConstructErrors_Post_Status_InvName }, { - RtemsMessageReqConstructErrors_Post_Status_InvAddress + RtemsMessageReqConstructErrors_Post_Status_InvName }, { - RtemsMessageReqConstructErrors_Post_Status_InvAddress + RtemsMessageReqConstructErrors_Post_Status_InvName }, { - RtemsMessageReqConstructErrors_Post_Status_InvAddress + RtemsMessageReqConstructErrors_Post_Status_InvName }, { - RtemsMessageReqConstructErrors_Post_Status_InvAddress + RtemsMessageReqConstructErrors_Post_Status_InvName }, { - RtemsMessageReqConstructErrors_Post_Status_InvAddress + RtemsMessageReqConstructErrors_Post_Status_InvName }, { - RtemsMessageReqConstructErrors_Post_Status_InvAddress + RtemsMessageReqConstructErrors_Post_Status_InvName }, { - RtemsMessageReqConstructErrors_Post_Status_InvAddress + RtemsMessageReqConstructErrors_Post_Status_InvName }, { - RtemsMessageReqConstructErrors_Post_Status_InvAddress + RtemsMessageReqConstructErrors_Post_Status_InvName }, { - RtemsMessageReqConstructErrors_Post_Status_InvAddress + RtemsMessageReqConstructErrors_Post_Status_InvName }, { - RtemsMessageReqConstructErrors_Post_Status_InvAddress + RtemsMessageReqConstructErrors_Post_Status_InvName }, { - RtemsMessageReqConstructErrors_Post_Status_InvAddress + RtemsMessageReqConstructErrors_Post_Status_InvName }, { - RtemsMessageReqConstructErrors_Post_Status_InvAddress + RtemsMessageReqConstructErrors_Post_Status_InvName }, { - RtemsMessageReqConstructErrors_Post_Status_InvAddress + RtemsMessageReqConstructErrors_Post_Status_InvName }, { - RtemsMessageReqConstructErrors_Post_Status_InvAddress + RtemsMessageReqConstructErrors_Post_Status_InvName }, { - RtemsMessageReqConstructErrors_Post_Status_InvAddress + RtemsMessageReqConstructErrors_Post_Status_InvName }, { - RtemsMessageReqConstructErrors_Post_Status_InvAddress + RtemsMessageReqConstructErrors_Post_Status_InvName }, { - RtemsMessageReqConstructErrors_Post_Status_InvAddress + RtemsMessageReqConstructErrors_Post_Status_InvName } }; diff --git a/testsuites/validation/tc-task-construct-errors.c b/testsuites/validation/tc-task-construct-errors.c index 615186e092..981bacb07b 100644 --- a/testsuites/validation/tc-task-construct-errors.c +++ b/testsuites/validation/tc-task-construct-errors.c @@ -1171,197 +1171,197 @@ static const uint8_t RtemsTaskReqConstructErrors_TransitionMap[][ 1 ] = { }, { RtemsTaskReqConstructErrors_Post_Status_InvAddress }, { - RtemsTaskReqConstructErrors_Post_Status_InvAddress + RtemsTaskReqConstructErrors_Post_Status_InvName }, { - RtemsTaskReqConstructErrors_Post_Status_InvAddress + RtemsTaskReqConstructErrors_Post_Status_InvName }, { - RtemsTaskReqConstructErrors_Post_Status_InvAddress + RtemsTaskReqConstructErrors_Post_Status_InvName }, { - RtemsTaskReqConstructErrors_Post_Status_InvAddress + RtemsTaskReqConstructErrors_Post_Status_InvName }, { - RtemsTaskReqConstructErrors_Post_Status_InvAddress + RtemsTaskReqConstructErrors_Post_Status_InvName }, { - RtemsTaskReqConstructErrors_Post_Status_InvAddress + RtemsTaskReqConstructErrors_Post_Status_InvName }, { - RtemsTaskReqConstructErrors_Post_Status_InvAddress + RtemsTaskReqConstructErrors_Post_Status_InvName }, { - RtemsTaskReqConstructErrors_Post_Status_InvAddress + RtemsTaskReqConstructErrors_Post_Status_InvName }, { - RtemsTaskReqConstructErrors_Post_Status_InvAddress + RtemsTaskReqConstructErrors_Post_Status_InvName }, { - RtemsTaskReqConstructErrors_Post_Status_InvAddress + RtemsTaskReqConstructErrors_Post_Status_InvName }, { - RtemsTaskReqConstructErrors_Post_Status_InvAddress + RtemsTaskReqConstructErrors_Post_Status_InvName }, { - RtemsTaskReqConstructErrors_Post_Status_InvAddress + RtemsTaskReqConstructErrors_Post_Status_InvName }, { - RtemsTaskReqConstructErrors_Post_Status_InvAddress + RtemsTaskReqConstructErrors_Post_Status_InvName }, { - RtemsTaskReqConstructErrors_Post_Status_InvAddress + RtemsTaskReqConstructErrors_Post_Status_InvName }, { - RtemsTaskReqConstructErrors_Post_Status_InvAddress + RtemsTaskReqConstructErrors_Post_Status_InvName }, { - RtemsTaskReqConstructErrors_Post_Status_InvAddress + RtemsTaskReqConstructErrors_Post_Status_InvName }, { - RtemsTaskReqConstructErrors_Post_Status_InvAddress + RtemsTaskReqConstructErrors_Post_Status_InvName }, { - RtemsTaskReqConstructErrors_Post_Status_InvAddress + RtemsTaskReqConstructErrors_Post_Status_InvName }, { - RtemsTaskReqConstructErrors_Post_Status_InvAddress + RtemsTaskReqConstructErrors_Post_Status_InvName }, { - RtemsTaskReqConstructErrors_Post_Status_InvAddress + RtemsTaskReqConstructErrors_Post_Status_InvName }, { - RtemsTaskReqConstructErrors_Post_Status_InvAddress + RtemsTaskReqConstructErrors_Post_Status_InvName }, { - RtemsTaskReqConstructErrors_Post_Status_InvAddress + RtemsTaskReqConstructErrors_Post_Status_InvName }, { - RtemsTaskReqConstructErrors_Post_Status_InvAddress + RtemsTaskReqConstructErrors_Post_Status_InvName }, { - RtemsTaskReqConstructErrors_Post_Status_InvAddress + RtemsTaskReqConstructErrors_Post_Status_InvName }, { - RtemsTaskReqConstructErrors_Post_Status_InvAddress + RtemsTaskReqConstructErrors_Post_Status_InvName }, { - RtemsTaskReqConstructErrors_Post_Status_InvAddress + RtemsTaskReqConstructErrors_Post_Status_InvName }, { - RtemsTaskReqConstructErrors_Post_Status_InvAddress + RtemsTaskReqConstructErrors_Post_Status_InvName }, { - RtemsTaskReqConstructErrors_Post_Status_InvAddress + RtemsTaskReqConstructErrors_Post_Status_InvName }, { - RtemsTaskReqConstructErrors_Post_Status_InvAddress + RtemsTaskReqConstructErrors_Post_Status_InvName }, { - RtemsTaskReqConstructErrors_Post_Status_InvAddress + RtemsTaskReqConstructErrors_Post_Status_InvName }, { - RtemsTaskReqConstructErrors_Post_Status_InvAddress + RtemsTaskReqConstructErrors_Post_Status_InvName }, { - RtemsTaskReqConstructErrors_Post_Status_InvAddress + RtemsTaskReqConstructErrors_Post_Status_InvName }, { - RtemsTaskReqConstructErrors_Post_Status_InvAddress + RtemsTaskReqConstructErrors_Post_Status_InvName }, { - RtemsTaskReqConstructErrors_Post_Status_InvAddress + RtemsTaskReqConstructErrors_Post_Status_InvName }, { - RtemsTaskReqConstructErrors_Post_Status_InvAddress + RtemsTaskReqConstructErrors_Post_Status_InvName }, { - RtemsTaskReqConstructErrors_Post_Status_InvAddress + RtemsTaskReqConstructErrors_Post_Status_InvName }, { - RtemsTaskReqConstructErrors_Post_Status_InvAddress + RtemsTaskReqConstructErrors_Post_Status_InvName }, { - RtemsTaskReqConstructErrors_Post_Status_InvAddress + RtemsTaskReqConstructErrors_Post_Status_InvName }, { - RtemsTaskReqConstructErrors_Post_Status_InvAddress + RtemsTaskReqConstructErrors_Post_Status_InvName }, { - RtemsTaskReqConstructErrors_Post_Status_InvAddress + RtemsTaskReqConstructErrors_Post_Status_InvName }, { - RtemsTaskReqConstructErrors_Post_Status_InvAddress + RtemsTaskReqConstructErrors_Post_Status_InvName }, { - RtemsTaskReqConstructErrors_Post_Status_InvAddress + RtemsTaskReqConstructErrors_Post_Status_InvName }, { - RtemsTaskReqConstructErrors_Post_Status_InvAddress + RtemsTaskReqConstructErrors_Post_Status_InvName }, { - RtemsTaskReqConstructErrors_Post_Status_InvAddress + RtemsTaskReqConstructErrors_Post_Status_InvName }, { - RtemsTaskReqConstructErrors_Post_Status_InvAddress + RtemsTaskReqConstructErrors_Post_Status_InvName }, { - RtemsTaskReqConstructErrors_Post_Status_InvAddress + RtemsTaskReqConstructErrors_Post_Status_InvName }, { - RtemsTaskReqConstructErrors_Post_Status_InvAddress + RtemsTaskReqConstructErrors_Post_Status_InvName }, { - RtemsTaskReqConstructErrors_Post_Status_InvAddress + RtemsTaskReqConstructErrors_Post_Status_InvName }, { - RtemsTaskReqConstructErrors_Post_Status_InvAddress + RtemsTaskReqConstructErrors_Post_Status_InvName }, { - RtemsTaskReqConstructErrors_Post_Status_InvAddress + RtemsTaskReqConstructErrors_Post_Status_InvName }, { - RtemsTaskReqConstructErrors_Post_Status_InvAddress + RtemsTaskReqConstructErrors_Post_Status_InvName }, { - RtemsTaskReqConstructErrors_Post_Status_InvAddress + RtemsTaskReqConstructErrors_Post_Status_InvName }, { - RtemsTaskReqConstructErrors_Post_Status_InvAddress + RtemsTaskReqConstructErrors_Post_Status_InvName }, { - RtemsTaskReqConstructErrors_Post_Status_InvAddress + RtemsTaskReqConstructErrors_Post_Status_InvName }, { - RtemsTaskReqConstructErrors_Post_Status_InvAddress + RtemsTaskReqConstructErrors_Post_Status_InvName }, { - RtemsTaskReqConstructErrors_Post_Status_InvAddress + RtemsTaskReqConstructErrors_Post_Status_InvName }, { - RtemsTaskReqConstructErrors_Post_Status_InvAddress + RtemsTaskReqConstructErrors_Post_Status_InvName }, { - RtemsTaskReqConstructErrors_Post_Status_InvAddress + RtemsTaskReqConstructErrors_Post_Status_InvName }, { - RtemsTaskReqConstructErrors_Post_Status_InvAddress + RtemsTaskReqConstructErrors_Post_Status_InvName }, { - RtemsTaskReqConstructErrors_Post_Status_InvAddress + RtemsTaskReqConstructErrors_Post_Status_InvName }, { - RtemsTaskReqConstructErrors_Post_Status_InvAddress + RtemsTaskReqConstructErrors_Post_Status_InvName }, { - RtemsTaskReqConstructErrors_Post_Status_InvAddress + RtemsTaskReqConstructErrors_Post_Status_InvName }, { - RtemsTaskReqConstructErrors_Post_Status_InvAddress + RtemsTaskReqConstructErrors_Post_Status_InvName }, { - RtemsTaskReqConstructErrors_Post_Status_InvAddress + RtemsTaskReqConstructErrors_Post_Status_InvName }, { - RtemsTaskReqConstructErrors_Post_Status_InvAddress + RtemsTaskReqConstructErrors_Post_Status_InvName }, { - RtemsTaskReqConstructErrors_Post_Status_InvAddress + RtemsTaskReqConstructErrors_Post_Status_InvName }, { - RtemsTaskReqConstructErrors_Post_Status_InvAddress + RtemsTaskReqConstructErrors_Post_Status_InvName }, { - RtemsTaskReqConstructErrors_Post_Status_InvAddress + RtemsTaskReqConstructErrors_Post_Status_InvName }, { - RtemsTaskReqConstructErrors_Post_Status_InvAddress + RtemsTaskReqConstructErrors_Post_Status_InvName }, { - RtemsTaskReqConstructErrors_Post_Status_InvAddress + RtemsTaskReqConstructErrors_Post_Status_InvName }, { - RtemsTaskReqConstructErrors_Post_Status_InvAddress + RtemsTaskReqConstructErrors_Post_Status_InvName }, { - RtemsTaskReqConstructErrors_Post_Status_InvAddress + RtemsTaskReqConstructErrors_Post_Status_InvName }, { - RtemsTaskReqConstructErrors_Post_Status_InvAddress + RtemsTaskReqConstructErrors_Post_Status_InvName }, { - RtemsTaskReqConstructErrors_Post_Status_InvAddress + RtemsTaskReqConstructErrors_Post_Status_InvName }, { - RtemsTaskReqConstructErrors_Post_Status_InvAddress + RtemsTaskReqConstructErrors_Post_Status_InvName }, { - RtemsTaskReqConstructErrors_Post_Status_InvAddress + RtemsTaskReqConstructErrors_Post_Status_InvName }, { - RtemsTaskReqConstructErrors_Post_Status_InvAddress + RtemsTaskReqConstructErrors_Post_Status_InvName }, { - RtemsTaskReqConstructErrors_Post_Status_InvAddress + RtemsTaskReqConstructErrors_Post_Status_InvName }, { - RtemsTaskReqConstructErrors_Post_Status_InvAddress + RtemsTaskReqConstructErrors_Post_Status_InvName }, { - RtemsTaskReqConstructErrors_Post_Status_InvAddress + RtemsTaskReqConstructErrors_Post_Status_InvName }, { - RtemsTaskReqConstructErrors_Post_Status_InvAddress + RtemsTaskReqConstructErrors_Post_Status_InvName }, { - RtemsTaskReqConstructErrors_Post_Status_InvAddress + RtemsTaskReqConstructErrors_Post_Status_InvName }, { - RtemsTaskReqConstructErrors_Post_Status_InvAddress + RtemsTaskReqConstructErrors_Post_Status_InvName }, { - RtemsTaskReqConstructErrors_Post_Status_InvAddress + RtemsTaskReqConstructErrors_Post_Status_InvName }, { - RtemsTaskReqConstructErrors_Post_Status_InvAddress + RtemsTaskReqConstructErrors_Post_Status_InvName }, { - RtemsTaskReqConstructErrors_Post_Status_InvAddress + RtemsTaskReqConstructErrors_Post_Status_InvName }, { - RtemsTaskReqConstructErrors_Post_Status_InvAddress + RtemsTaskReqConstructErrors_Post_Status_InvName }, { - RtemsTaskReqConstructErrors_Post_Status_InvAddress + RtemsTaskReqConstructErrors_Post_Status_InvName }, { - RtemsTaskReqConstructErrors_Post_Status_InvAddress + RtemsTaskReqConstructErrors_Post_Status_InvName }, { - RtemsTaskReqConstructErrors_Post_Status_InvAddress + RtemsTaskReqConstructErrors_Post_Status_InvName }, { - RtemsTaskReqConstructErrors_Post_Status_InvAddress + RtemsTaskReqConstructErrors_Post_Status_InvName }, { - RtemsTaskReqConstructErrors_Post_Status_InvAddress + RtemsTaskReqConstructErrors_Post_Status_InvName }, { - RtemsTaskReqConstructErrors_Post_Status_InvAddress + RtemsTaskReqConstructErrors_Post_Status_InvName }, { - RtemsTaskReqConstructErrors_Post_Status_InvAddress + RtemsTaskReqConstructErrors_Post_Status_InvName }, { - RtemsTaskReqConstructErrors_Post_Status_InvAddress + RtemsTaskReqConstructErrors_Post_Status_InvName }, { - RtemsTaskReqConstructErrors_Post_Status_InvAddress + RtemsTaskReqConstructErrors_Post_Status_InvName } }; -- cgit v1.2.3