summaryrefslogtreecommitdiffstats
path: root/testsuites/psxtests/psxstack01
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/psxstack01
parenttests: Use rtems_status_text() (diff)
downloadrtems-698c2e504a4382036b412e1b2798ca83432bbbab.tar.bz2
tests/psxtests: Use <rtems/test.h>
Diffstat (limited to 'testsuites/psxtests/psxstack01')
-rw-r--r--testsuites/psxtests/psxstack01/init.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/testsuites/psxtests/psxstack01/init.c b/testsuites/psxtests/psxstack01/init.c
index f873ccc330..7a010c8c6c 100644
--- a/testsuites/psxtests/psxstack01/init.c
+++ b/testsuites/psxtests/psxstack01/init.c
@@ -19,6 +19,8 @@
#include <rtems/posix/pthreadimpl.h>
#include <rtems/score/stackimpl.h>
+const char rtems_test_name[] = "PSXSTACK 1";
+
/* forward declarations to avoid warnings */
void *POSIX_Init(void *argument);
void *Test_Thread(void *argument);
@@ -57,7 +59,7 @@ void *POSIX_Init(
pthread_attr_t attr;
struct timespec delay_request;
- puts( "\n\n*** POSIX STACK ATTRIBUTE TEST 01 ***" );
+ TEST_BEGIN();
puts( "Init - Allocate stack from heap" );
Stack_Low = malloc(PTHREAD_MINIMUM_STACK_SIZE);
@@ -84,7 +86,7 @@ void *POSIX_Init(
sc = nanosleep( &delay_request, NULL );
rtems_test_assert( !sc );
- puts( "*** END OF POSIX STACK ATTRIBUTE TEST 01 ***" );
+ TEST_END();
rtems_test_exit(0);
return NULL; /* just so the compiler thinks we returned something */
@@ -95,6 +97,8 @@ void *POSIX_Init(
#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