summaryrefslogtreecommitdiffstats
path: root/testsuites/sptests/sp51
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2014-03-27 14:46:31 +0100
committerSebastian Huber <sebastian.huber@embedded-brains.de>2014-03-31 10:14:42 +0200
commit03e8928753ef76cb747b965938092c59d6306060 (patch)
treeb97520d3bd562dc50a226b590d8626f2b4e85d19 /testsuites/sptests/sp51
parentscore: Delete CORE_mutex_Control::holder_id (diff)
downloadrtems-03e8928753ef76cb747b965938092c59d6306060.tar.bz2
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.
Diffstat (limited to 'testsuites/sptests/sp51')
-rw-r--r--testsuites/sptests/sp51/init.c4
1 files changed, 2 insertions, 2 deletions
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 );