[rtems commit] psxtests/psxmsgq01: Enable test case

Sebastian Huber sebh at rtems.org
Tue May 24 13:37:46 UTC 2016


Module:    rtems
Branch:    master
Commit:    7088340957bbdc288016a98234a78993614e95d6
Changeset: http://git.rtems.org/rtems/commit/?id=7088340957bbdc288016a98234a78993614e95d6

Author:    Sebastian Huber <sebastian.huber at embedded-brains.de>
Date:      Tue May 24 14:18:16 2016 +0200

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 41cb124..0c34cd9 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 e68ce6d..70da5f3 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



More information about the vc mailing list