[PATCH 3/3] smpschedaffinity05: Change semaphore attributes.

Gedare Bloom gedare at rtems.org
Wed Nov 12 15:10:46 UTC 2014


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.averett at 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 at rtems.org
> http://lists.rtems.org/mailman/listinfo/devel



More information about the devel mailing list