diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2021-08-06 20:25:13 +0200 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2021-08-06 20:25:13 +0200 |
commit | 33f83d2d73223a8692dd371c3cf3cce01d0a0659 (patch) | |
tree | 3c85c274ffebaccc7e4e2e1d79b708b2a58b8481 | |
parent | ffc35e2b4316204bf8f2bc8512f9afdb3dc30c21 (diff) |
testsuites/validation/tc-ratemon-get-status.c
-rw-r--r-- | testsuites/validation/tc-ratemon-get-status.c | 22 |
1 files changed, 14 insertions, 8 deletions
diff --git a/testsuites/validation/tc-ratemon-get-status.c b/testsuites/validation/tc-ratemon-get-status.c index bd3fba9a94..d50bccb4ab 100644 --- a/testsuites/validation/tc-ratemon-get-status.c +++ b/testsuites/validation/tc-ratemon-get-status.c @@ -662,10 +662,13 @@ static void RtemsRatemonReqGetStatus_Post_Elapsed_Check( * rtems_rate_monotonic_get_status() shall not be accessed by the * rtems_rate_monotonic_get_status() call (see also Nop). */ - T_eq_mem( - &ctx->period_status.since_last_period, - &initial_period, - sizeof( ctx->elapsed ) + T_eq_u64( + ctx->period_status.since_last_period.tv_sec, + initial_period.tv_sec + ); + T_eq_long( + ctx->period_status.since_last_period.tv_nsec, + initial_period.tv_nsec ); break; } @@ -725,10 +728,13 @@ static void RtemsRatemonReqGetStatus_Post_Consumed_Check( * rtems_rate_monotonic_get_status() shall not be accessed by the * rtems_rate_monotonic_get_status() call (see also Nop). */ - T_eq_mem( - &ctx->period_status.executed_since_last_period, - &initial_period, - sizeof( ctx->consumed ) + T_eq_u64( + ctx->period_status.executed_since_last_period.tv_sec, + initial_period.tv_sec + ); + T_eq_long( + ctx->period_status.executed_since_last_period.tv_nsec, + initial_period.tv_nsec ); break; } |