summaryrefslogtreecommitdiffstats
path: root/testsuites/psxtests/psxmsgq02
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/psxmsgq02
parenttests: Use rtems_status_text() (diff)
downloadrtems-698c2e504a4382036b412e1b2798ca83432bbbab.tar.bz2
tests/psxtests: Use <rtems/test.h>
Diffstat (limited to 'testsuites/psxtests/psxmsgq02')
-rw-r--r--testsuites/psxtests/psxmsgq02/init.c6
-rw-r--r--testsuites/psxtests/psxmsgq02/system.h2
2 files changed, 6 insertions, 2 deletions
diff --git a/testsuites/psxtests/psxmsgq02/init.c b/testsuites/psxtests/psxmsgq02/init.c
index 33641687e2..290663d22d 100644
--- a/testsuites/psxtests/psxmsgq02/init.c
+++ b/testsuites/psxtests/psxmsgq02/init.c
@@ -23,6 +23,8 @@
#include <signal.h> /* signal facilities */
#include "test_support.h"
+const char rtems_test_name[] = "PSXMSGQ 2";
+
/* forward declarations to avoid warnings */
void *POSIX_Init(void *argument);
@@ -35,7 +37,7 @@ void *POSIX_Init(
struct mq_attr attr;
mqd_t mq;
- puts( "\n\n*** POSIX MESSAGE QUEUE 02 TEST ***" );
+ TEST_BEGIN();
/* set the time of day, and print our buffer in multiple ways */
@@ -55,7 +57,7 @@ void *POSIX_Init(
mq = mq_open( Get_Longest_Name(), O_CREAT, 0x777, &attr );
fatal_posix_service_status_errno(mq, ENOMEM, "no workspace available");
- puts( "*** END OF POSIX MESSAGE QUEUE 02 TEST ***" );
+ TEST_END();
rtems_test_exit( 0 );
return NULL; /* just so the compiler thinks we returned something */
diff --git a/testsuites/psxtests/psxmsgq02/system.h b/testsuites/psxtests/psxmsgq02/system.h
index 9a131a7a5d..180879e95a 100644
--- a/testsuites/psxtests/psxmsgq02/system.h
+++ b/testsuites/psxtests/psxmsgq02/system.h
@@ -30,6 +30,8 @@ void *POSIX_Init(
#define CONFIGURE_POSIX_INIT_THREAD_TABLE
+#define CONFIGURE_INITIAL_EXTENSIONS RTEMS_TEST_INITIAL_EXTENSION
+
#define CONFIGURE_MAXIMUM_POSIX_THREADS 5
#define CONFIGURE_MAXIMUM_POSIX_MESSAGE_QUEUES 10