diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2016-11-03 10:52:53 +0100 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2016-11-03 10:55:31 +0100 |
commit | 6e31b56f95dfde7d6bc2d6d9f03541446f767c62 (patch) | |
tree | fef1da10c90a799be251fdcb946cb9205b3fe842 /testsuites/tmtests | |
parent | 0154dea369523542b1ab666177b2f63b28b6c199 (diff) |
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.
Diffstat (limited to 'testsuites/tmtests')
-rw-r--r-- | testsuites/tmtests/tm02/task1.c | 4 |
1 files changed, 2 insertions, 2 deletions
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) |