summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJennifer Averett <jennifer.averett@oarcorp.com>2014-11-11 10:21:02 -0600
committerJennifer Averett <jennifer.averett@oarcorp.com>2014-11-20 13:47:03 -0600
commitdb44590c1d4318eebc99f4ad56de59e5dd68fe1b (patch)
tree866eb34f09b14a1947b2de616da9db47551f338f
parentsmpschedaffinity04: Change semaphore attributes. (diff)
downloadrtems-db44590c1d4318eebc99f4ad56de59e5dd68fe1b.tar.bz2
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);