diff options
author | Kuan-Hsun Chen <c0066c@gmail.com> | 2017-01-27 23:15:50 +0100 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2017-01-30 07:53:13 +0100 |
commit | 0794197f729f5ee9551dc7b2e14867f394cbc327 (patch) | |
tree | 75ead135c567f4956396c10a030888fa156ffdba /testsuites/sptests/sprmsched02/sprmsched02.scn | |
parent | score: Clarify _Heap_Extend() (diff) | |
download | rtems-0794197f729f5ee9551dc7b2e14867f394cbc327.tar.bz2 |
rtems: Fix _Rate_monotonic_Renew_deadline()
Prepare a precondition to prevent the potential integer overflow.
Remove one redundant parameter in _Rate_monotonic_Renew_deadline().
sptests/sprmsched02: Create
A test case for checking the overflow condition of postponed_jobs
in rtems_rate_monotonic_period_status.
Update #2885.
Diffstat (limited to 'testsuites/sptests/sprmsched02/sprmsched02.scn')
-rw-r--r-- | testsuites/sptests/sprmsched02/sprmsched02.scn | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/testsuites/sptests/sprmsched02/sprmsched02.scn b/testsuites/sptests/sprmsched02/sprmsched02.scn new file mode 100644 index 0000000000..1a39c4f822 --- /dev/null +++ b/testsuites/sptests/sprmsched02/sprmsched02.scn @@ -0,0 +1,9 @@ +*** BEGIN OF TEST SPRMSCHED 2 *** +Testing overflow condition +Modify the count of postponed_job manually +Init Postponed jobs = 4294967295, and expected 4294967295 +Task misses its deadline. +Count = 4294967295, and expected 4294967295 +Task misses its deadline. +Count = 4294967295, and expected 4294967295 +*** END OF TEST SPRMSCHED 2 *** |