summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJennifer Averett <jennifer.averett@oarcorp.com>2014-11-13 19:15:00 +0100
committerDaniel Hellstrom <daniel@gaisler.com>2014-11-19 16:29:56 +0100
commit24e85401c9942dab31117f6758ce1222f395576d (patch)
treee98ffe463645990692b41f5fb8f90516e0ad16a3
parent7769fb1b1b910688e76a84c65b2c00059a82ea4a (diff)
smpschedaffinity05: Change semaphore attributes.
Change semaphore attributes to resolve problem where semaphore is not released upon a context switch.
-rw-r--r--testsuites/smptests/smpschedaffinity05/init.c10
1 files changed, 4 insertions, 6 deletions
diff --git a/testsuites/smptests/smpschedaffinity05/init.c b/testsuites/smptests/smpschedaffinity05/init.c
index 754c226687..5a36801832 100644
--- a/testsuites/smptests/smpschedaffinity05/init.c
+++ b/testsuites/smptests/smpschedaffinity05/init.c
@@ -145,14 +145,12 @@ static void test(void)
sc = rtems_semaphore_create(
rtems_build_name('S', 'E', 'M', '0'),
1, /* initial count = 1 */
- RTEMS_LOCAL |
- RTEMS_SIMPLE_BINARY_SEMAPHORE |
- RTEMS_NO_INHERIT_PRIORITY |
- RTEMS_NO_PRIORITY_CEILING |
- RTEMS_FIFO,
+ RTEMS_BINARY_SEMAPHORE |
+ RTEMS_PRIORITY |
+ RTEMS_PRIORITY_CEILING,
0,
&task_sem
- );
+ );
rtems_test_assert(sc == RTEMS_SUCCESSFUL);