Are there still tests for when the lock would be held despite the context switch? Just want to make sure we're not removing some test-case.
On Wed, Nov 12, 2014 at 9:48 AM, Jennifer Averett <jennifer.aver...@oarcorp.com> wrote: > Change semaphore attributes to resolve problem where semaphore is not > released upon a context switch. > --- > testsuites/smptests/smpschedaffinity05/init.c | 9 +++------ > 1 file changed, 3 insertions(+), 6 deletions(-) > > diff --git a/testsuites/smptests/smpschedaffinity05/init.c > b/testsuites/smptests/smpschedaffinity05/init.c > index 754c226..9fddb58 100644 > --- a/testsuites/smptests/smpschedaffinity05/init.c > +++ b/testsuites/smptests/smpschedaffinity05/init.c > @@ -145,14 +145,11 @@ 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_MULTIPROCESSOR_RESOURCE_SHARING, > 0, > &task_sem > - ); > + ); > rtems_test_assert(sc == RTEMS_SUCCESSFUL); > > > -- > 1.8.1.4 > > _______________________________________________ > devel mailing list > devel@rtems.org > http://lists.rtems.org/mailman/listinfo/devel _______________________________________________ devel mailing list devel@rtems.org http://lists.rtems.org/mailman/listinfo/devel