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/spintrcritical10 | |
parent | tests/psxtests: Use <rtems/test.h> (diff) | |
download | rtems-6c0301daad418d362f71eaa7e5c4b6a2d948fc50.tar.bz2 |
tests/sptests: Use <rtems/test.h>
Diffstat (limited to 'testsuites/sptests/spintrcritical10')
-rw-r--r-- | testsuites/sptests/spintrcritical10/init.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/testsuites/sptests/spintrcritical10/init.c b/testsuites/sptests/spintrcritical10/init.c index c44f0aed30..f3883f7fa6 100644 --- a/testsuites/sptests/spintrcritical10/init.c +++ b/testsuites/sptests/spintrcritical10/init.c @@ -18,6 +18,8 @@ #include <rtems/rtems/eventimpl.h> +const char rtems_test_name[] = "SPINTRCRITICAL 10"; + #define GREEN RTEMS_EVENT_0 #define RED RTEMS_EVENT_1 @@ -304,7 +306,7 @@ static rtems_task Init( .thread = _Thread_Get_executing() }; - puts( "\n\n*** TEST INTERRUPT CRITICAL SECTION 10 ***" ); + TEST_BEGIN(); sc = rtems_timer_create(rtems_build_name('T', 'I', 'M', 'R'), &ctx.timer); rtems_test_assert(sc == RTEMS_SUCCESSFUL); @@ -313,7 +315,7 @@ static rtems_task Init( test_all_satisfy_before_timeout(&ctx); test_timeout_before_all_satisfy(&ctx); - puts( "*** END OF TEST INTERRUPT CRITICAL SECTION 10 ***" ); + TEST_END(); rtems_test_exit(0); } @@ -324,6 +326,8 @@ static rtems_task Init( #define CONFIGURE_MAXIMUM_TASKS 1 #define CONFIGURE_MAXIMUM_TIMERS 1 +#define CONFIGURE_INITIAL_EXTENSIONS RTEMS_TEST_INITIAL_EXTENSION + #define CONFIGURE_RTEMS_INIT_TASKS_TABLE #define CONFIGURE_MICROSECONDS_PER_TICK 1000 |