diff options
author | Kuan-Hsun Chen <c0066c@gmail.com> | 2017-01-25 21:47:48 +0100 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2017-01-26 10:00:33 +0100 |
commit | d7feb8677d48162bf8db34406c232e0179d43dc6 (patch) | |
tree | f7985412d2b7950fb19833bda46d6628902ecaaa /testsuites/sptests/sp69/init.c | |
parent | score: Delete _CPU_Context_Fp_start() (diff) | |
download | rtems-d7feb8677d48162bf8db34406c232e0179d43dc6.tar.bz2 |
Remove rtems_rate_monotonic_postponed_job_count()
Add a variable named "count" in rtems_rate_monotonic_period_status
structure. Revise rtems_rate_monotonic_get_status() for the postponed
job count.
sptests/sp69: Add in the verification of the postponed job count for
rtems_rate_monotonic_get_status().
Update #2795.
Diffstat (limited to 'testsuites/sptests/sp69/init.c')
-rw-r--r-- | testsuites/sptests/sp69/init.c | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/testsuites/sptests/sp69/init.c b/testsuites/sptests/sp69/init.c index ac6f58cebe..c604c2de06 100644 --- a/testsuites/sptests/sp69/init.c +++ b/testsuites/sptests/sp69/init.c @@ -159,10 +159,18 @@ rtems_task Init( statistics.missed_count ); } - + rtems_test_assert( statistics.missed_count == i ); } - + + /* Check the status */ + status = rtems_rate_monotonic_get_status( period_id, &period_status ); + directive_failed( status, "rate_monotonic_get_status" ); + puts( + "rtems_rate_monotonic_get_status - verify value of a postponed jobs count" + ); + rtems_test_assert( period_status.postponed_jobs_count == 3 ); + TEST_END(); rtems_test_exit(0); |