diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2014-03-25 08:06:21 +0100 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2014-03-25 08:06:21 +0100 |
commit | 6c0301daad418d362f71eaa7e5c4b6a2d948fc50 (patch) | |
tree | d08b9e09d3c69ca35f96c9f1eeff8eb244df92ed /testsuites/sptests/spintrcritical17/init.c | |
parent | tests/psxtests: Use <rtems/test.h> (diff) | |
download | rtems-6c0301daad418d362f71eaa7e5c4b6a2d948fc50.tar.bz2 |
tests/sptests: Use <rtems/test.h>
Diffstat (limited to 'testsuites/sptests/spintrcritical17/init.c')
-rw-r--r-- | testsuites/sptests/spintrcritical17/init.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/testsuites/sptests/spintrcritical17/init.c b/testsuites/sptests/spintrcritical17/init.c index 420c0acc83..9dde48a06b 100644 --- a/testsuites/sptests/spintrcritical17/init.c +++ b/testsuites/sptests/spintrcritical17/init.c @@ -20,6 +20,8 @@ #include <rtems/rtems/timerimpl.h> +const char rtems_test_name[] = "SPINTRCRITICAL 17"; + /* forward declarations to avoid warnings */ rtems_task Init(rtems_task_argument argument); @@ -76,7 +78,7 @@ static void trigger_callback(rtems_id timer_id, void *arg) rtems_status_code sc = RTEMS_SUCCESSFUL; if (case_hit) { - puts("*** END OF INTERRUPT CRITICAL SECTION 17 ***"); + TEST_END(); rtems_test_exit(0); } else if (interrupt_critical_section_test_support_delay()) { @@ -94,7 +96,7 @@ rtems_task Init( rtems_task_argument ignored ) rtems_status_code sc = RTEMS_SUCCESSFUL; size_t i = 0; - puts("\n\n*** TEST INTERRUPT CRITICAL SECTION 17 ***"); + TEST_BEGIN(); build_time(&tod, 4, 12, 2009, 9, 34, 11, 0); sc = rtems_clock_set(&tod); @@ -156,6 +158,8 @@ rtems_task Init( rtems_task_argument ignored ) #define CONFIGURE_MAXIMUM_TASKS 2 #define CONFIGURE_MAXIMUM_TIMERS 4 +#define CONFIGURE_INITIAL_EXTENSIONS RTEMS_TEST_INITIAL_EXTENSION + #define CONFIGURE_RTEMS_INIT_TASKS_TABLE #define CONFIGURE_INIT |