summaryrefslogtreecommitdiffstats
path: root/testsuites/sptests/spintrcritical20
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/spintrcritical20
parenttests/psxtests: Use <rtems/test.h> (diff)
downloadrtems-6c0301daad418d362f71eaa7e5c4b6a2d948fc50.tar.bz2
tests/sptests: Use <rtems/test.h>
Diffstat (limited to 'testsuites/sptests/spintrcritical20')
-rw-r--r--testsuites/sptests/spintrcritical20/init.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/testsuites/sptests/spintrcritical20/init.c b/testsuites/sptests/spintrcritical20/init.c
index 1fedd39f67..cae8fdbc4d 100644
--- a/testsuites/sptests/spintrcritical20/init.c
+++ b/testsuites/sptests/spintrcritical20/init.c
@@ -21,7 +21,7 @@
#include <rtems/score/threadqimpl.h>
#include <rtems/rtems/semimpl.h>
-#define TEST_NAME "20"
+const char rtems_test_name[] = "SPINTRCRITICAL 20";
#define PRIORITY_MASTER 2
@@ -69,7 +69,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();
@@ -140,7 +140,7 @@ static void Init(rtems_task_argument ignored)
rtems_test_assert(ctx->status_was_successful);
rtems_test_assert(ctx->status_was_timeout);
- puts("*** END OF TEST INTERRUPT CRITICAL SECTION " TEST_NAME " ***");
+ TEST_END();
rtems_test_exit(0);
}
@@ -158,6 +158,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