diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2022-06-23 09:41:21 +0200 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2022-06-23 09:43:15 +0200 |
commit | 8c8ee47113eff24b3f583509d3bbbf6d1c496947 (patch) | |
tree | f7b913e9181ac38afca803bd37c002e957d5ea40 | |
parent | modules: Update rtems (diff) | |
download | rtems-central-8c8ee47113eff24b3f583509d3bbbf6d1c496947.tar.bz2 |
spec: Adjust clock_nanosleep() test case
Update #4669.
-rw-r--r-- | spec/c/req/clock-nanosleep.yml | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/spec/c/req/clock-nanosleep.yml b/spec/c/req/clock-nanosleep.yml index 5e57eaa2..e2c62514 100644 --- a/spec/c/req/clock-nanosleep.yml +++ b/spec/c/req/clock-nanosleep.yml @@ -377,14 +377,20 @@ test-support: | while ( true ) { T_scheduler_log *log; + uint32_t counter; SuspendSelf(); log = T_scheduler_record_4( &ctx->scheduler_log ); T_null( log ); - _Timecounter_Getnanotime( &ctx->now_realtime ); - _Timecounter_Getnanouptime( &ctx->now_monotonic ); + counter = GetTimecountCounter(); + _Timecounter_Nanotime( &ctx->now_realtime ); + SetTimecountCounter( counter ); + + counter = GetTimecountCounter(); + _Timecounter_Nanouptime( &ctx->now_monotonic ); + SetTimecountCounter( counter ); ctx->status = clock_nanosleep( ctx->clock_id, |