summaryrefslogtreecommitdiffstats
path: root/testsuites/smptests/smp02
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2014-03-17 08:10:19 +0100
committerSebastian Huber <sebastian.huber@embedded-brains.de>2014-03-17 09:17:36 +0100
commitad48ebbfc7e56cfdaf33e7a77a314171d6455511 (patch)
treec150e12d845b5fab5cc689e150068b9b9d085b38 /testsuites/smptests/smp02
parenttests/samples: Use <rtems/test.h> (diff)
downloadrtems-ad48ebbfc7e56cfdaf33e7a77a314171d6455511.tar.bz2
tests/smptests: Use <rtems/test.h>
Diffstat (limited to 'testsuites/smptests/smp02')
-rw-r--r--testsuites/smptests/smp02/init.c7
-rw-r--r--testsuites/smptests/smp02/system.h2
2 files changed, 7 insertions, 2 deletions
diff --git a/testsuites/smptests/smp02/init.c b/testsuites/smptests/smp02/init.c
index 509fed01b8..3af33a3d11 100644
--- a/testsuites/smptests/smp02/init.c
+++ b/testsuites/smptests/smp02/init.c
@@ -17,9 +17,11 @@
#include <stdio.h>
#include <inttypes.h>
+const char rtems_test_name[] = "SMP 2";
+
static void success(void)
{
- locked_printf( "*** END OF TEST SMP02 ***\n" );
+ TEST_END();
rtems_test_exit( 0 );
}
@@ -34,8 +36,9 @@ rtems_task Init(
rtems_status_code status;
char str[80];
+ TEST_BEGIN();
+
locked_print_initialize();
- locked_printf( "\n\n*** SMP02 TEST ***\n" );
if ( rtems_smp_get_processor_count() == 1 ) {
success();
diff --git a/testsuites/smptests/smp02/system.h b/testsuites/smptests/smp02/system.h
index ebe243fd9d..81c2912bd4 100644
--- a/testsuites/smptests/smp02/system.h
+++ b/testsuites/smptests/smp02/system.h
@@ -31,6 +31,8 @@ rtems_task Test_task(
#define CONFIGURE_MAXIMUM_TASKS \
(1 + CONFIGURE_SMP_MAXIMUM_PROCESSORS)
+#define CONFIGURE_INITIAL_EXTENSIONS RTEMS_TEST_INITIAL_EXTENSION
+
#define CONFIGURE_RTEMS_INIT_TASKS_TABLE
#define CONFIGURE_INIT_TASK_STACK_SIZE \
(3 * CONFIGURE_MINIMUM_TASK_STACK_SIZE)