summaryrefslogtreecommitdiffstats
path: root/testsuites/sptests/spintrcritical18
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2014-03-25 08:06:21 +0100
committerSebastian Huber <sebastian.huber@embedded-brains.de>2014-03-25 08:06:21 +0100
commit6c0301daad418d362f71eaa7e5c4b6a2d948fc50 (patch)
treed08b9e09d3c69ca35f96c9f1eeff8eb244df92ed /testsuites/sptests/spintrcritical18
parenttests/psxtests: Use <rtems/test.h> (diff)
downloadrtems-6c0301daad418d362f71eaa7e5c4b6a2d948fc50.tar.bz2
tests/sptests: Use <rtems/test.h>
Diffstat (limited to 'testsuites/sptests/spintrcritical18')
-rw-r--r--testsuites/sptests/spintrcritical18/init.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/testsuites/sptests/spintrcritical18/init.c b/testsuites/sptests/spintrcritical18/init.c
index 7b6400e504..c34f4b95c7 100644
--- a/testsuites/sptests/spintrcritical18/init.c
+++ b/testsuites/sptests/spintrcritical18/init.c
@@ -19,7 +19,7 @@
#include <tmacros.h>
#include <intrcritical.h>
-#define TEST_NAME "18"
+const char rtems_test_name[] = "SPINTRCRITICAL 18";
#define WAKE_UP RTEMS_EVENT_0
@@ -101,7 +101,7 @@ static void Init( rtems_task_argument ignored )
rtems_status_code sc;
int resets = 0;
- puts( "\n\n*** TEST INTERRUPT CRITICAL SECTION " TEST_NAME " ***\n" );
+ TEST_BEGIN();
sc = rtems_task_create(
rtems_build_name( 'H', 'I', 'G', 'H' ),
@@ -149,7 +149,7 @@ static void Init( rtems_task_argument ignored )
wake_up( ctx->middle_priority_task );
}
- puts( "*** END OF TEST INTERRUPT CRITICAL SECTION " TEST_NAME " ***" );
+ TEST_END();
rtems_test_exit( 0 );
}
@@ -166,6 +166,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