From 6e31b56f95dfde7d6bc2d6d9f03541446f767c62 Mon Sep 17 00:00:00 2001 From: Sebastian Huber Date: Thu, 3 Nov 2016 10:52:53 +0100 Subject: rtems: Fix binary semaphore resource count Binary semaphores (not simple binary semaphores) maintain the resource count since 8797c76addf22a2f0ffc3717ff977695e35b9b0b. Do this also for initially locked binary semaphores. --- testsuites/tmtests/tm02/task1.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'testsuites/tmtests') diff --git a/testsuites/tmtests/tm02/task1.c b/testsuites/tmtests/tm02/task1.c index 4d9b6d176e..b3761502be 100644 --- a/testsuites/tmtests/tm02/task1.c +++ b/testsuites/tmtests/tm02/task1.c @@ -70,8 +70,8 @@ rtems_task Init( test_init(); - status = rtems_task_delete( RTEMS_SELF ); - directive_failed( status, "rtems_task_delete" ); + status = rtems_task_suspend( RTEMS_SELF ); + directive_failed( status, "rtems_task_suspend" ); } void test_init(void) -- cgit v1.2.3