summaryrefslogtreecommitdiffstats
path: root/testsuites/psxtests/psxmsgq04
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2014-03-25 08:06:16 +0100
committerSebastian Huber <sebastian.huber@embedded-brains.de>2014-03-25 08:06:16 +0100
commit698c2e504a4382036b412e1b2798ca83432bbbab (patch)
tree114a7c00b534d6cecd4566b5d1c892c79b899268 /testsuites/psxtests/psxmsgq04
parenttests: Use rtems_status_text() (diff)
downloadrtems-698c2e504a4382036b412e1b2798ca83432bbbab.tar.bz2
tests/psxtests: Use <rtems/test.h>
Diffstat (limited to 'testsuites/psxtests/psxmsgq04')
-rw-r--r--testsuites/psxtests/psxmsgq04/init.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/testsuites/psxtests/psxmsgq04/init.c b/testsuites/psxtests/psxmsgq04/init.c
index 5b59c6023a..7086cbe035 100644
--- a/testsuites/psxtests/psxmsgq04/init.c
+++ b/testsuites/psxtests/psxmsgq04/init.c
@@ -22,6 +22,8 @@
#include "test_support.h"
+const char rtems_test_name[] = "PSXMSGQ 4";
+
/* forward declarations to avoid warnings */
void *POSIX_Init(void *argument);
@@ -38,7 +40,7 @@ void *POSIX_Init(
bool sb;
const char *name;
- puts( "\n\n*** POSIX MESSAGE QUEUE TEST 4 ***" );
+ TEST_BEGIN();
attr.mq_maxmsg = 1;
attr.mq_msgsize = sizeof(int);
@@ -114,7 +116,7 @@ void *POSIX_Init(
perror( "mq_close failed" );
rtems_test_assert( sc == 0 );
- puts( "*** END OF POSIX MESSAGE QUEUE TEST 4 ***" );
+ TEST_END();
rtems_test_exit( 0 );
return NULL; /* just so the compiler thinks we returned something */
@@ -131,6 +133,8 @@ void *POSIX_Init(
#define CONFIGURE_MESSAGE_BUFFER_MEMORY \
(2 * CONFIGURE_MESSAGE_BUFFERS_FOR_QUEUE(1, sizeof(int)))
+#define CONFIGURE_INITIAL_EXTENSIONS RTEMS_TEST_INITIAL_EXTENSION
+
#define CONFIGURE_MAXIMUM_POSIX_THREADS 1
#define CONFIGURE_MAXIMUM_POSIX_MESSAGE_QUEUES 1
#define CONFIGURE_MAXIMUM_POSIX_MESSAGE_QUEUE_DESCRIPTORS 2