summaryrefslogtreecommitdiffstats
path: root/testsuites/validation
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2021-05-12 07:11:48 +0200
committerSebastian Huber <sebastian.huber@embedded-brains.de>2021-05-14 08:50:10 +0200
commit410317ae3a0a4a512f072c3b1a48518e3c1135ab (patch)
tree808054e561f13bc50a815a5ca7a853b75b2fe0c5 /testsuites/validation
parentvalidation: Add support library (diff)
downloadrtems-410317ae3a0a4a512f072c3b1a48518e3c1135ab.tar.bz2
validation: Add INVALID_ID to tx-support.h
Diffstat (limited to 'testsuites/validation')
-rw-r--r--testsuites/validation/tc-barrier-create.c2
-rw-r--r--testsuites/validation/tc-message-construct-errors.c4
-rw-r--r--testsuites/validation/tx-support.h5
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 ] ), \