[rtems-central commit] spec: Avoid magic number

Sebastian Huber sebh at rtems.org
Fri Nov 19 07:51:56 UTC 2021


Module:    rtems-central
Branch:    master
Commit:    b1424193cb46641d8d036a8b59bc3f33f5023d02
Changeset: http://git.rtems.org/rtems-central/commit/?id=b1424193cb46641d8d036a8b59bc3f33f5023d02

Author:    Sebastian Huber <sebastian.huber at embedded-brains.de>
Date:      Tue Nov 16 11:26:48 2021 +0100

spec: Avoid magic number

---

 spec/rtems/task/req/create-errors.yml | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/spec/rtems/task/req/create-errors.yml b/spec/rtems/task/req/create-errors.yml
index 9710180..460141f 100644
--- a/spec/rtems/task/req/create-errors.yml
+++ b/spec/rtems/task/req/create-errors.yml
@@ -170,7 +170,7 @@ pre-conditions:
   states:
   - name: Valid
     test-code: |
-      ctx->initial_priority = 254;
+      ctx->initial_priority = RTEMS_MAXIMUM_PRIORITY - 1;
     text: |
       While the ${../if/create:/params[1]/name} parameter is valid and
       non-zero.



More information about the vc mailing list