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/spintrcritical19/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/spintrcritical19/init.c')
-rw-r--r-- | testsuites/sptests/spintrcritical19/init.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/testsuites/sptests/spintrcritical19/init.c b/testsuites/sptests/spintrcritical19/init.c index 8d708bb294..4d2eca8622 100644 --- a/testsuites/sptests/spintrcritical19/init.c +++ b/testsuites/sptests/spintrcritical19/init.c @@ -20,7 +20,7 @@ #include <intrcritical.h> #include <rtems/score/statesimpl.h> -#define TEST_NAME "19" +const char rtems_test_name[] = "SPINTRCRITICAL 19"; #define PRIORITY_RED 1 @@ -68,7 +68,7 @@ static void Init(rtems_task_argument ignored) int resets = 0; rtems_status_code sc; - puts("\n\n*** TEST INTERRUPT CRITICAL SECTION " TEST_NAME " ***\n"); + TEST_BEGIN(); ctx->master_task = rtems_task_self(); ctx->master_task_tcb = _Thread_Get_executing(); @@ -110,7 +110,7 @@ static void Init(rtems_task_argument ignored) sc = rtems_task_delete(ctx->resumer_task); rtems_test_assert(sc == RTEMS_SUCCESSFUL); - puts("*** END OF TEST INTERRUPT CRITICAL SECTION " TEST_NAME " ***"); + TEST_END(); rtems_test_exit(0); } @@ -127,6 +127,8 @@ static void Init(rtems_task_argument ignored) #define CONFIGURE_INIT_TASK_ATTRIBUTES RTEMS_DEFAULT_ATTRIBUTES #define CONFIGURE_INIT_TASK_INITIAL_MODES RTEMS_DEFAULT_MODES +#define CONFIGURE_INITIAL_EXTENSIONS RTEMS_TEST_INITIAL_EXTENSION + #define CONFIGURE_RTEMS_INIT_TASKS_TABLE #define CONFIGURE_INIT |