[rtems commit] validation: Add INVALID_ID to tx-support.h
Sebastian Huber
sebh at rtems.org
Fri May 14 06:53:18 UTC 2021
Module: rtems
Branch: master
Commit: 410317ae3a0a4a512f072c3b1a48518e3c1135ab
Changeset: http://git.rtems.org/rtems/commit/?id=410317ae3a0a4a512f072c3b1a48518e3c1135ab
Author: Sebastian Huber <sebastian.huber at embedded-brains.de>
Date: Wed May 12 07:11:48 2021 +0200
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(-)
diff --git a/testsuites/validation/tc-barrier-create.c b/testsuites/validation/tc-barrier-create.c
index b40fe43..25841df 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 0838596..570160b 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 69cb308..932584b 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 ] ), \
More information about the vc
mailing list