diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2021-10-29 07:12:20 +0200 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2021-10-29 08:32:05 +0200 |
commit | 87720a656c58594d1c33ca53fb122204c40a84a9 (patch) | |
tree | 9b7458cb3dea59d7b8f235f1cb124d53191dfdbf | |
parent | spec: Fix typo (diff) | |
download | rtems-central-87720a656c58594d1c33ca53fb122204c40a84a9.tar.bz2 |
spec: Check that NTP update second is not called
-rw-r--r-- | spec/score/timecounter/val/install.yml | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/spec/score/timecounter/val/install.yml b/spec/score/timecounter/val/install.yml index 261c985a..6ed290db 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: | |