summaryrefslogtreecommitdiffstats
path: root/testsuites/psxtests/psxstack02
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/psxstack02
parenttests: Use rtems_status_text() (diff)
downloadrtems-698c2e504a4382036b412e1b2798ca83432bbbab.tar.bz2
tests/psxtests: Use <rtems/test.h>
Diffstat (limited to 'testsuites/psxtests/psxstack02')
-rw-r--r--testsuites/psxtests/psxstack02/init.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/testsuites/psxtests/psxstack02/init.c b/testsuites/psxtests/psxstack02/init.c
index 210bc7dfa9..df65ee3393 100644
--- a/testsuites/psxtests/psxstack02/init.c
+++ b/testsuites/psxtests/psxstack02/init.c
@@ -21,6 +21,8 @@
#include <rtems/posix/pthreadimpl.h>
#include <rtems/score/stackimpl.h>
+const char rtems_test_name[] = "PSXSTACK 2";
+
/* forward declarations to avoid warnings */
void *POSIX_Init(void *argument);
void *Test_Thread(void *arg);
@@ -58,7 +60,7 @@ void *POSIX_Init(void *argument)
pthread_attr_t attr;
struct timespec delay_request;
- puts( "\n\n*** POSIX STACK ATTRIBUTE TEST 02 ***" );
+ TEST_BEGIN();
puts( "Init - Allocate stack from heap" );
Stack_Low = malloc(PTHREAD_MINIMUM_STACK_SIZE);
@@ -85,7 +87,7 @@ void *POSIX_Init(void *argument)
puts( "pthread_set_stack not supported - SKIPPING TEST CASE" );
#endif
- puts( "*** END OF POSIX STACK ATTRIBUTE TEST 02 ***" );
+ TEST_END();
rtems_test_exit(0);
}
@@ -95,6 +97,8 @@ void *POSIX_Init(void *argument)
#define CONFIGURE_APPLICATION_NEEDS_CONSOLE_DRIVER
#define CONFIGURE_APPLICATION_NEEDS_CLOCK_DRIVER
+#define CONFIGURE_INITIAL_EXTENSIONS RTEMS_TEST_INITIAL_EXTENSION
+
#define CONFIGURE_MAXIMUM_POSIX_THREADS 2
#define CONFIGURE_POSIX_INIT_THREAD_TABLE