[rtems-central commit] spec: Adjust to new latest valid time of day

Sebastian Huber sebh at rtems.org
Mon Sep 6 12:20:30 UTC 2021


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

Author:    Sebastian Huber <sebastian.huber at embedded-brains.de>
Date:      Mon Sep  6 12:57:30 2021 +0200

spec: Adjust to new latest valid time of day

---

 spec/rtems/clock/req/get-tod.yml | 14 ++------------
 spec/rtems/clock/req/set.yml     | 22 +++-------------------
 2 files changed, 5 insertions(+), 31 deletions(-)

diff --git a/spec/rtems/clock/req/get-tod.yml b/spec/rtems/clock/req/get-tod.yml
index 6eea3b1..4857857 100644
--- a/spec/rtems/clock/req/get-tod.yml
+++ b/spec/rtems/clock/req/get-tod.yml
@@ -83,14 +83,6 @@ pre-conditions:
     text: |
       While the ${/glossary/clock-realtime:/term} indicates a
       date for a leap year with the value of 29th of February.
-  - name: Leap100
-    test-code: |
-      ctx->set_tod_value =
-        (rtems_time_of_day) { 2100, 2, 28, 23, 59, 59,
-        rtems_clock_get_ticks_per_second() - 1 };
-    text: |
-      While the ${/glossary/clock-realtime:/term} indicates a
-      date for a non-leap year with the value of 28th of February.
   - name: Leap400
     test-code: |
       ctx->set_tod_value =
@@ -108,11 +100,11 @@ pre-conditions:
   - name: Oldest
     test-code: |
       ctx->set_tod_value =
-        (rtems_time_of_day) { 2105, 12, 31, 23, 59, 59,
+        (rtems_time_of_day) { 2099, 12, 31, 23, 59, 59,
         rtems_clock_get_ticks_per_second() - 1 };
     text: |
       While the ${/glossary/clock-realtime:/term} indicates the
-      oldest date and time accepted (2105-12-31T23:59:59.999999999Z).
+      oldest date and time accepted (2099-12-31T23:59:59.999999999Z).
   - name: NotSet
     test-code: |
       ctx->isDef = false;
@@ -197,7 +189,6 @@ transition-map:
     ToD:
       - Arbitrary
       - Leap4
-      - Leap100
       - Leap400
       - Youngest
       - Oldest
@@ -211,7 +202,6 @@ transition-map:
     ToD:
       - Arbitrary
       - Leap4
-      - Leap100
       - Leap400
       - Youngest
       - Oldest
diff --git a/spec/rtems/clock/req/set.yml b/spec/rtems/clock/req/set.yml
index d99550b..49d027f 100644
--- a/spec/rtems/clock/req/set.yml
+++ b/spec/rtems/clock/req/set.yml
@@ -102,24 +102,10 @@ pre-conditions:
   - name: ValidLeap4
     test-code: |
       ctx->target_tod_value =
-        (rtems_time_of_day) { 2104, 2, 29, 0, 0, 0, 0 };
+        (rtems_time_of_day) { 2096, 2, 29, 0, 0, 0, 0 };
     text: |
       While the ${../if/set:/params[0]/name} parameter references a
       date for a leap year with the value of 29th of February.
-  - name: ValidLeap100
-    test-code: |
-      ctx->target_tod_value =
-        (rtems_time_of_day) { 2100, 2, 28, 23, 59, 59, 0 };
-    text: |
-      While the ${../if/set:/params[0]/name} parameter references a
-      date for a non-leap century year with the value of 28th of February.
-  - name: ValidNoneLeap100
-    test-code: |
-      ctx->target_tod_value =
-        (rtems_time_of_day) { 2100, 3, 1, 0, 0, 0, 0 };
-    text: |
-      While the ${../if/set:/params[0]/name} parameter references a
-      date for a non-leap century year with the value of 1st of March.
   - name: ValidLeap400
     test-code: |
       ctx->target_tod_value =
@@ -137,11 +123,11 @@ pre-conditions:
   - name: Oldest
     test-code: |
       ctx->target_tod_value =
-        (rtems_time_of_day) { 2105, 12, 31, 23, 59, 59,
+        (rtems_time_of_day) { 2099, 12, 31, 23, 59, 59,
         rtems_clock_get_ticks_per_second() - 1 };
     text: |
       While the ${../if/set:/params[0]/name} parameter references the
-      oldest date and time accepted (2105-12-31T23:59:59.999999999Z).
+      oldest date and time accepted (2099-12-31T23:59:59.999999999Z).
   - name: TooJung
     test-code: |
       ctx->target_tod_value =
@@ -389,8 +375,6 @@ transition-map:
       - Youngest
       - Oldest
       - ValidLeap4
-      - ValidLeap100
-      - ValidNoneLeap100
       - ValidLeap400
       - BeforeTimer
 - enabled-by: true



More information about the vc mailing list