From 03e8928753ef76cb747b965938092c59d6306060 Mon Sep 17 00:00:00 2001 From: Sebastian Huber Date: Thu, 27 Mar 2014 14:46:31 +0100 Subject: score: Delete CORE_mutex_Control::lock The holder field is enough to determine if a mutex is locked or not. This leads also to better error status codes in case a rtems_semaphore_release() is done for a mutex without having the ownership. --- testsuites/sptests/sp51/init.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'testsuites/sptests/sp51') diff --git a/testsuites/sptests/sp51/init.c b/testsuites/sptests/sp51/init.c index fba2206ec3..98d362f89c 100644 --- a/testsuites/sptests/sp51/init.c +++ b/testsuites/sptests/sp51/init.c @@ -52,10 +52,10 @@ rtems_task Init( fatal_directive_status( sc, RTEMS_INVALID_PRIORITY, "rtems_semaphore_obtain" ); - /* This returns successful because RTEMS eats the unneeded unlock */ puts( "Release semaphore we did not obtain" ); sc = rtems_semaphore_release( mutex ); - directive_failed( sc, "rtems_semaphore_release" ); + fatal_directive_status( + sc, RTEMS_NOT_OWNER_OF_RESOURCE, "rtems_semaphore_release" ); TEST_END(); rtems_test_exit( 0 ); -- cgit v1.2.3