summaryrefslogtreecommitdiffstats
path: root/testsuites/sptests/spintrcritical16/init.c
diff options
context:
space:
mode:
Diffstat (limited to 'testsuites/sptests/spintrcritical16/init.c')
-rw-r--r--testsuites/sptests/spintrcritical16/init.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/testsuites/sptests/spintrcritical16/init.c b/testsuites/sptests/spintrcritical16/init.c
index 2201ca8e03..f1858000bc 100644
--- a/testsuites/sptests/spintrcritical16/init.c
+++ b/testsuites/sptests/spintrcritical16/init.c
@@ -16,13 +16,13 @@
#include <rtems/rtems/semimpl.h>
+const char rtems_test_name[] = "SPINTRCRITICAL 16";
+
/* forward declarations to avoid warnings */
rtems_task Init(rtems_task_argument argument);
rtems_timer_service_routine test_release_from_isr(rtems_id timer, void *arg);
Thread_blocking_operation_States getState(void);
-#define TEST_NAME "16"
-
Thread_Control *Main_TCB;
rtems_id Main_task;
rtems_id Semaphore;
@@ -66,8 +66,8 @@ rtems_task Init(
rtems_status_code sc;
int resets;
+ TEST_BEGIN();
puts(
- "\n\n*** TEST INTERRUPT CRITICAL SECTION " TEST_NAME " ***\n"
"Init - Trying to generate timeout of a thread that had its blocking\n"
"Init - request satisfied while blocking but before time timeout"
);
@@ -101,7 +101,7 @@ rtems_task Init(
if ( case_hit ) {
puts( "Init - Case hit" );
- puts( "*** END OF TEST INTERRUPT CRITICAL SECTION " TEST_NAME " ***" );
+ TEST_END();
} else
puts( "Init - Case not hit - ran too long" );
@@ -118,6 +118,8 @@ rtems_task Init(
#define CONFIGURE_MAXIMUM_TIMERS 1
#define CONFIGURE_MAXIMUM_SEMAPHORES 1
#define CONFIGURE_MICROSECONDS_PER_TICK 1000
+#define CONFIGURE_INITIAL_EXTENSIONS RTEMS_TEST_INITIAL_EXTENSION
+
#define CONFIGURE_RTEMS_INIT_TASKS_TABLE
#define CONFIGURE_INIT