[rtems-central commit] spec: Check that NTP update second is not called
Sebastian Huber
sebh at rtems.org
Fri Oct 29 17:40:48 UTC 2021
Module: rtems-central
Branch: master
Commit: 87720a656c58594d1c33ca53fb122204c40a84a9
Changeset: http://git.rtems.org/rtems-central/commit/?id=87720a656c58594d1c33ca53fb122204c40a84a9
Author: Sebastian Huber <sebastian.huber at embedded-brains.de>
Date: Fri Oct 29 07:12:20 2021 +0200
spec: Check that NTP update second is not called
---
spec/score/timecounter/val/install.yml | 17 +++++++++++++++++
1 file changed, 17 insertions(+)
diff --git a/spec/score/timecounter/val/install.yml b/spec/score/timecounter/val/install.yml
index 261c985..6ed290d 100644
--- a/spec/score/timecounter/val/install.yml
+++ b/spec/score/timecounter/val/install.yml
@@ -843,6 +843,23 @@ test-actions:
T_eq_u64( bt.frac, 1219770712064 );
checks:
- brief: |
+ Let the seconds value of ${/glossary/clock-realtime:/term} not change.
+ Check that the NTP update second handler is not called.
+ code: |
+ _Timecounter_Set_NTP_update_second( NtpUpdateCounter );
+ SetCounter( tc, tc->base.tc_frequency / 2 );
+ CallTimecounterTick();
+ _Timecounter_Set_NTP_update_second( NULL );
+
+ T_eq_u32( ntp_counter, 0 );
+
+ rtems_clock_get_realtime_bintime( &bt );
+ T_eq_i64( bt.sec, 567993603 );
+ T_eq_u64( bt.frac, 9223373256625487872 );
+ links:
+ - role: validation
+ uid: ../req/ntp-step
+ - brief: |
Let the seconds value of ${/glossary/clock-realtime:/term} change by one.
Check that the NTP update second handler is called exactly once.
code: |
More information about the vc
mailing list