diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2021-05-12 07:11:48 +0200 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2021-05-14 08:50:10 +0200 |
commit | 410317ae3a0a4a512f072c3b1a48518e3c1135ab (patch) | |
tree | 808054e561f13bc50a815a5ca7a853b75b2fe0c5 /testsuites/validation | |
parent | validation: Add support library (diff) | |
download | rtems-410317ae3a0a4a512f072c3b1a48518e3c1135ab.tar.bz2 |
validation: Add INVALID_ID to tx-support.h
Diffstat (limited to 'testsuites/validation')
-rw-r--r-- | testsuites/validation/tc-barrier-create.c | 2 | ||||
-rw-r--r-- | testsuites/validation/tc-message-construct-errors.c | 4 | ||||
-rw-r--r-- | testsuites/validation/tx-support.h | 5 |
3 files changed, 7 insertions, 4 deletions
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 <rtems.h> #include <string.h> +#include "tx-support.h" + #include <rtems/test.h> /** @@ -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 ] ), \ |