From 7088340957bbdc288016a98234a78993614e95d6 Mon Sep 17 00:00:00 2001 From: Sebastian Huber Date: Tue, 24 May 2016 14:18:16 +0200 Subject: psxtests/psxmsgq01: Enable test case --- testsuites/psxtests/psxmsgq01/init.c | 8 +++----- testsuites/psxtests/psxmsgq01/psxmsgq01.scn | 1 + 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/testsuites/psxtests/psxmsgq01/init.c b/testsuites/psxtests/psxmsgq01/init.c index 41cb1243aa..0c34cd972b 100644 --- a/testsuites/psxtests/psxmsgq01/init.c +++ b/testsuites/psxtests/psxmsgq01/init.c @@ -706,9 +706,8 @@ void validate_mq_receive_error_codes(void) void verify_open_functionality(void) { -#if 0 mqd_t n_mq; -#endif + int status; Start_Test( "mq_open functionality" ); @@ -716,12 +715,11 @@ void verify_open_functionality(void) * Validate a second open returns the same message queue. */ -#if 0 puts( "Init: mq_open - Open an existing mq ( same id )" ); n_mq = mq_open( RD_NAME, 0 ); - fatal_posix_service_status( rtems_test_assert( n_mq == Test_q[RD_QUEUE].mq ); -#endif + status = mq_close( n_mq ); + fatal_posix_service_status( status, 0, "mq_close"); } void verify_unlink_functionality(void) diff --git a/testsuites/psxtests/psxmsgq01/psxmsgq01.scn b/testsuites/psxtests/psxmsgq01/psxmsgq01.scn index e68ce6d698..70da5f322e 100644 --- a/testsuites/psxtests/psxmsgq01/psxmsgq01.scn +++ b/testsuites/psxtests/psxmsgq01/psxmsgq01.scn @@ -52,6 +52,7 @@ Init: Init: mq_timedreceive - on queue Qnoblock Init: 0 sec 128 us Init: Init: mq_timedreceive - on queue Qblock Init: 1 sec -715 us Init: Init: mq_timedreceive - on queue Qdefault Init: 1 sec -1836 us _______________mq_open functionality +Init: mq_open - Open an existing mq ( same id ) _______________mq_notify Init: mq_notify - Unopened message queue (EBADF) _____mq_notify - notify when Qnoblock gets a message -- cgit v1.2.3