summaryrefslogtreecommitdiffstats
path: root/testsuites/psxtests/psxmsgq01
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2016-05-24 14:18:16 +0200
committerSebastian Huber <sebastian.huber@embedded-brains.de>2016-05-24 15:32:33 +0200
commit7088340957bbdc288016a98234a78993614e95d6 (patch)
treec18edbf6b1dc6c5f0b956af9a79b1852cc3c0bd3 /testsuites/psxtests/psxmsgq01
parentscore: _CORE_message_queue_Seize() (diff)
downloadrtems-7088340957bbdc288016a98234a78993614e95d6.tar.bz2
psxtests/psxmsgq01: Enable test case
Diffstat (limited to 'testsuites/psxtests/psxmsgq01')
-rw-r--r--testsuites/psxtests/psxmsgq01/init.c8
-rw-r--r--testsuites/psxtests/psxmsgq01/psxmsgq01.scn1
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