summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2021-09-06 12:57:30 +0200
committerSebastian Huber <sebastian.huber@embedded-brains.de>2021-09-06 13:32:38 +0200
commit833ef156206f49623d6a8fdb851c57da525df8c2 (patch)
treec969099c8257d639d6b85f9b1a5b9a50154c190b
parentspec: Use TEST_MINIMUM_STACK_SIZE (diff)
downloadrtems-central-833ef156206f49623d6a8fdb851c57da525df8c2.tar.bz2
spec: Adjust to new latest valid time of day
-rw-r--r--spec/rtems/clock/req/get-tod.yml14
-rw-r--r--spec/rtems/clock/req/set.yml22
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 6eea3b10..4857857a 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 d99550b3..49d027ff 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