From 410317ae3a0a4a512f072c3b1a48518e3c1135ab Mon Sep 17 00:00:00 2001 From: Sebastian Huber Date: Wed, 12 May 2021 07:11:48 +0200 Subject: validation: Add INVALID_ID to tx-support.h --- testsuites/validation/tc-barrier-create.c | 2 -- testsuites/validation/tc-message-construct-errors.c | 4 ++-- testsuites/validation/tx-support.h | 5 +++++ 3 files changed, 7 insertions(+), 4 deletions(-) (limited to 'testsuites/validation') diff --git a/testsuites/validation/tc-barrier-create.c b/testsuites/validation/tc-barrier-create.c index b40fe4301a..25841df2a0 100644 --- a/testsuites/validation/tc-barrier-create.c +++ b/testsuites/validation/tc-barrier-create.c @@ -206,8 +206,6 @@ static const char * const * const RtemsBarrierReqCreate_PreDesc[] = { #define NAME rtems_build_name( 'T', 'E', 'S', 'T' ) -#define INVALID_ID 0xffffffff - typedef RtemsBarrierReqCreate_Context Context; static void Worker( rtems_task_argument arg ) diff --git a/testsuites/validation/tc-message-construct-errors.c b/testsuites/validation/tc-message-construct-errors.c index 08385963fa..570160b947 100644 --- a/testsuites/validation/tc-message-construct-errors.c +++ b/testsuites/validation/tc-message-construct-errors.c @@ -55,6 +55,8 @@ #include #include +#include "tx-support.h" + #include /** @@ -234,8 +236,6 @@ static const char * const * const RtemsMessageReqConstructErrors_PreDesc[] = { #define NAME rtems_build_name( 'T', 'E', 'S', 'T' ) -#define INVALID_ID 0xffffffff - #define MAX_MESSAGE_QUEUES 4 #define MAX_PENDING_MESSAGES 1 diff --git a/testsuites/validation/tx-support.h b/testsuites/validation/tx-support.h index 69cb308d52..932584b168 100644 --- a/testsuites/validation/tx-support.h +++ b/testsuites/validation/tx-support.h @@ -60,6 +60,11 @@ typedef enum { PRIO_ULTRA_LOW } Priority; +/** + * @brief This constants represents an invalid RTEMS object identifier. + */ +#define INVALID_ID 0xfffffffd + #define CreateTask( name, priority ) \ DoCreateTask( \ rtems_build_name( name[ 0 ], name[ 1 ], name[ 2 ], name[ 3 ] ), \ -- cgit v1.2.3