summaryrefslogtreecommitdiffstats
path: root/testsuites/psxtests/psxcleanup01/init.c
diff options
context:
space:
mode:
Diffstat (limited to 'testsuites/psxtests/psxcleanup01/init.c')
-rw-r--r--testsuites/psxtests/psxcleanup01/init.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/testsuites/psxtests/psxcleanup01/init.c b/testsuites/psxtests/psxcleanup01/init.c
index 427bc7fb34..502f90bc6b 100644
--- a/testsuites/psxtests/psxcleanup01/init.c
+++ b/testsuites/psxtests/psxcleanup01/init.c
@@ -15,6 +15,8 @@
#include "pmacros.h"
#include <pthread.h> /* thread facilities */
+const char rtems_test_name[] = "PSXCLEANUP 1";
+
/* forward declarations to avoid warnings */
void *POSIX_Init(void *argument);
void cleaner(void *arg);
@@ -29,7 +31,7 @@ void *POSIX_Init(
void *argument
)
{
- puts( "\n\n*** POSIX CLEANUP TEST 01 ***" );
+ TEST_BEGIN();
puts( "Init - pthread_cleanup_push - a routine we will not execute" );
pthread_cleanup_push(cleaner, NULL);
@@ -37,7 +39,7 @@ void *POSIX_Init(
puts( "Init - pthread_cleanup_pop - do not execute" );
pthread_cleanup_pop(0);
- puts( "*** END OF POSIX CLEANUP TEST 01 ***\n" );
+ TEST_END();
rtems_test_exit(0);
}
@@ -49,6 +51,8 @@ void *POSIX_Init(
#define CONFIGURE_POSIX_INIT_THREAD_TABLE
+#define CONFIGURE_INITIAL_EXTENSIONS RTEMS_TEST_INITIAL_EXTENSION
+
#define CONFIGURE_MAXIMUM_POSIX_THREADS 1
#define CONFIGURE_INIT