summaryrefslogtreecommitdiffstats
path: root/testsuites/psxtests/psxcancel/init.c
diff options
context:
space:
mode:
Diffstat (limited to 'testsuites/psxtests/psxcancel/init.c')
-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