From c904df573396d95957dc79b242b3a76911063089 Mon Sep 17 00:00:00 2001 From: Sebastian Huber Date: Fri, 18 Mar 2016 07:25:23 +0100 Subject: score: Add _Objects_Get_by_name() Replace _Objects_Name_to_id_string() with _Objects_Get_by_name() since all users of this function are interested in the object itself and not the identifier. Use the object allocator lock to protect the search. Update #2555. --- testsuites/psxtests/psxmsgq01/init.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'testsuites/psxtests/psxmsgq01/init.c') diff --git a/testsuites/psxtests/psxmsgq01/init.c b/testsuites/psxtests/psxmsgq01/init.c index de2965a715..41cb1243aa 100644 --- a/testsuites/psxtests/psxmsgq01/init.c +++ b/testsuites/psxtests/psxmsgq01/init.c @@ -378,13 +378,13 @@ void validate_mq_unlink_error_codes(void) fatal_posix_service_status( errno, EINVAL, "mq_unlink errno value"); /* - * EINVAL - Unlink a queue with a null name + * ENOENT - Unlink a queue with a zero length name */ - puts( "Init: mq_unlink (\"\") - EINVAL" ); + puts( "Init: mq_unlink (\"\") - ENOENT" ); status = mq_unlink( "" ); fatal_posix_service_status( status, -1, "mq_unlink error return status"); - fatal_posix_service_status( errno, EINVAL, "mq_unlink errno value"); + fatal_posix_service_status( errno, ENOENT, "mq_unlink errno value"); } void validate_mq_close_error_codes(void) -- cgit v1.2.3