summaryrefslogtreecommitdiffstats
path: root/testsuites/psxtests/psxobj01/init.c
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2020-11-23 17:22:10 +0100
committerSebastian Huber <sebastian.huber@embedded-brains.de>2020-12-03 07:12:12 +0100
commit13bab346c528d1c4d459a8eabbc47656993601f1 (patch)
treed61046cf9df1f7789f84f816480fe05a5e78499a /testsuites/psxtests/psxobj01/init.c
parentrtems: Generate <rtems/rtems/object.h> (diff)
downloadrtems-13bab346c528d1c4d459a8eabbc47656993601f1.tar.bz2
score: Return a status in _Objects_Set_name()
Diffstat (limited to '')
-rw-r--r--testsuites/psxtests/psxobj01/init.c6
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);