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 | |
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')
-rw-r--r-- | testsuites/sptests/sp69/init.c | 12 | ||||
-rw-r--r-- | testsuites/sptests/sp69/sp69.doc | 2 | ||||
-rw-r--r-- | testsuites/sptests/sp69/sp69.scn | 5 |
3 files changed, 15 insertions, 4 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); diff --git a/testsuites/sptests/sp69/sp69.doc b/testsuites/sptests/sp69/sp69.doc index fbf0e4e246..60aacb82d3 100644 --- a/testsuites/sptests/sp69/sp69.doc +++ b/testsuites/sptests/sp69/sp69.doc @@ -1,5 +1,6 @@ # COPYRIGHT (c) 1989-2009. # On-Line Applications Research Corporation (OAR). +# COPYRIGHT (c) 2017 Kuan-Hsun Chen. # # The license and distribution terms for this file may be # found in the file LICENSE in this distribution or at @@ -21,3 +22,4 @@ concepts: a period is initiated. + Verify the correctness of the status values returned on an active period. + Ensure the missed period count is properly maintained. ++ Verify the correctness of the postponed job count. diff --git a/testsuites/sptests/sp69/sp69.scn b/testsuites/sptests/sp69/sp69.scn index 654eea08f1..e102d22e83 100644 --- a/testsuites/sptests/sp69/sp69.scn +++ b/testsuites/sptests/sp69/sp69.scn @@ -2,8 +2,9 @@ rtems_rate_monotonic_get_status - verify values of an inactive period rtems_rate_monotonic_get_status - check RTEMS_NOT_DEFINED rtems_rate_monotonic_get_status - verify values of an active period -wall time should be ~600000000 is 609216000 -cpu time should be ~100000000 is 109217000 +wall time should be ~600000000 is 609402399 +cpu time should be ~100000000 is 109612659 rtems_rate_monotonic_cancel - OK Testing statistics on missed periods +rtems_rate_monotonic_get_status - verify value of a postponed jobs count *** END OF TEST 69 *** |