diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2020-11-23 17:22:10 +0100 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2020-12-03 07:12:12 +0100 |
commit | 13bab346c528d1c4d459a8eabbc47656993601f1 (patch) | |
tree | d61046cf9df1f7789f84f816480fe05a5e78499a /testsuites/psxtests/psxobj01 | |
parent | rtems: Generate <rtems/rtems/object.h> (diff) | |
download | rtems-13bab346c528d1c4d459a8eabbc47656993601f1.tar.bz2 |
score: Return a status in _Objects_Set_name()
Diffstat (limited to '')
-rw-r--r-- | testsuites/psxtests/psxobj01/init.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/testsuites/psxtests/psxobj01/init.c b/testsuites/psxtests/psxobj01/init.c index ba1e327ea5..fef749b3e9 100644 --- a/testsuites/psxtests/psxobj01/init.c +++ b/testsuites/psxtests/psxobj01/init.c @@ -37,7 +37,7 @@ static rtems_task Init( Objects_Control *the_object; char name[64]; size_t name_len; - bool bc; + Status_Control status; TEST_BEGIN(); @@ -70,12 +70,12 @@ static rtems_task Init( puts( "INIT - _Objects_Set_name fails - out of memory" ); rtems_workspace_greedy_allocate( NULL, 0 ); - bc = _Objects_Set_name( + status = _Objects_Set_name( &Test_Information, &_Thread_Get_executing()->Object, name ); - rtems_test_assert( bc == false ); + rtems_test_assert( status == STATUS_NO_MEMORY ); TEST_END(); rtems_test_exit(0); |