summaryrefslogtreecommitdiffstats
path: root/testsuites/psxtests/psxcancel
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/psxcancel
parenttests: Use rtems_status_text() (diff)
downloadrtems-698c2e504a4382036b412e1b2798ca83432bbbab.tar.bz2
tests/psxtests: Use <rtems/test.h>
Diffstat (limited to 'testsuites/psxtests/psxcancel')
-rw-r--r--testsuites/psxtests/psxcancel/init.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/testsuites/psxtests/psxcancel/init.c b/testsuites/psxtests/psxcancel/init.c
index 7644edff43..c8c96b556c 100644
--- a/testsuites/psxtests/psxcancel/init.c
+++ b/testsuites/psxtests/psxcancel/init.c
@@ -22,6 +22,8 @@
#include <pmacros.h>
#endif
+const char rtems_test_name[] = "PSXCANCEL";
+
/* forward declarations to avoid warnings */
void *POSIX_Init(void *argument);
void countTask_cancel_handler(void *ignored);
@@ -80,7 +82,7 @@ void *countTaskAsync(void *ignored)
int sc;
int old;
- puts( "\n\n*** POSIX CANCEL TEST ***" );
+ TEST_BEGIN();
/* generate some error conditions */
puts( "Init - pthread_setcancelstate - NULL oldstate - EINVAL" );
@@ -130,7 +132,7 @@ void *countTaskAsync(void *ignored)
}
- puts( "*** END OF POSIX CANCEL TEST ***" );
+ TEST_END();
#if defined(__rtems__)
rtems_test_exit(EXIT_SUCCESS);
@@ -146,6 +148,8 @@ void *countTaskAsync(void *ignored)
#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