diff options
Diffstat (limited to 'testsuites/sptests/spintrcritical15')
-rw-r--r-- | testsuites/sptests/spintrcritical15/init.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/testsuites/sptests/spintrcritical15/init.c b/testsuites/sptests/spintrcritical15/init.c index 0f8871ec13..ec84165bf8 100644 --- a/testsuites/sptests/spintrcritical15/init.c +++ b/testsuites/sptests/spintrcritical15/init.c @@ -14,11 +14,12 @@ #include <tmacros.h> #include <intrcritical.h> +const char rtems_test_name[] = "SPINTRCRITICAL 15"; + /* forward declarations to avoid warnings */ rtems_task Init(rtems_task_argument argument); rtems_task Secondary_task(rtems_task_argument ignored); -#define TEST_NAME "15" #define INIT_PRIORITY 2 #define BLOCKER_PRIORITY 1 @@ -45,8 +46,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 while another is blocking\n" "Init - on the same thread queue\n" "Init - There is no way for the test to know if it hits the case" @@ -91,7 +92,7 @@ rtems_task Init( fatal_directive_status( sc, RTEMS_TIMEOUT, "rtems_semaphore_obtain" ); } - puts( "*** END OF TEST INTERRUPT CRITICAL SECTION " TEST_NAME " ***" ); + TEST_END(); rtems_test_exit(0); } @@ -105,6 +106,8 @@ rtems_task Init( #define CONFIGURE_MICROSECONDS_PER_TICK 1000 #define CONFIGURE_INIT_TASK_PRIORITY INIT_PRIORITY #define CONFIGURE_INIT_TASK_INITIAL_MODES RTEMS_PREEMPT +#define CONFIGURE_INITIAL_EXTENSIONS RTEMS_TEST_INITIAL_EXTENSION + #define CONFIGURE_RTEMS_INIT_TASKS_TABLE #define CONFIGURE_INIT |