From 88e8cc4d12c77a2818fa5558c7bff9df2765b66c Mon Sep 17 00:00:00 2001 From: Joel Sherrill Date: Mon, 5 Mar 2007 21:01:53 +0000 Subject: 2007-03-05 Joel Sherrill PR 1222/cpukit * Makefile.am, configure.ac: Enhance so that when the prioirity of a thread that is blocked on a priority based thread queue is changed, that its placement in the queue is reevaluated based upon the new priority. This enhancement includes modifications to the SuperCore as well as new test cases. * sp34/.cvsignore, sp34/Makefile.am, sp34/changepri.c, sp34/sp34.doc, sp34/sp34.scn, sp35/.cvsignore, sp35/Makefile.am, sp35/priinv.c, sp35/sp35.doc, sp35/sp35.scn: New files. --- testsuites/sptests/sp34/sp34.scn | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 testsuites/sptests/sp34/sp34.scn (limited to 'testsuites/sptests/sp34/sp34.scn') diff --git a/testsuites/sptests/sp34/sp34.scn b/testsuites/sptests/sp34/sp34.scn new file mode 100644 index 0000000000..770d5788ce --- /dev/null +++ b/testsuites/sptests/sp34/sp34.scn @@ -0,0 +1,26 @@ +Exception handling initialization done + + +*** TEST 34 *** +Blockers[0] Id = 0x0a010002 +Blockers[1] Id = 0x0a010003 +Blockers[2] Id = 0x0a010004 +Blockers[3] Id = 0x0a010005 +Blockers[4] Id = 0x0a010006 +semaphore_obtain -- BlockingTask 0 @ pri=2) blocks +semaphore_obtain -- BlockingTask 1 @ pri=3) blocks +semaphore_obtain -- BlockingTask 2 @ pri=4) blocks +semaphore_obtain -- BlockingTask 3 @ pri=5) blocks +semaphore_obtain -- BlockingTask 4 @ pri=6) blocks +rtems_task_set_priority -- invert priorities of tasks +rtems_semaphore_release -- OK +semaphore_obtain -- BlockingTask 4 @ pri=2) returns +rtems_semaphore_release -- OK +semaphore_obtain -- BlockingTask 3 @ pri=3) returns +rtems_semaphore_release -- OK +semaphore_obtain -- BlockingTask 2 @ pri=4) returns +rtems_semaphore_release -- OK +semaphore_obtain -- BlockingTask 1 @ pri=5) returns +rtems_semaphore_release -- OK +semaphore_obtain -- BlockingTask 0 @ pri=6) returns +*** END OF TEST 34 *** -- cgit v1.2.3