summaryrefslogtreecommitdiffstats
path: root/testsuites/samples/base_mp
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2014-03-10 16:31:43 +0100
committerSebastian Huber <sebastian.huber@embedded-brains.de>2014-03-17 09:17:36 +0100
commit9391f6d6637c752046cdfd89ae2eeea147496e44 (patch)
treefe6ad09c222cdf0489414d4a5a644b10845de333 /testsuites/samples/base_mp
parentsapi: Add <rtems/test.h> (diff)
downloadrtems-9391f6d6637c752046cdfd89ae2eeea147496e44.tar.bz2
tests/samples: Use <rtems/test.h>
Diffstat (limited to 'testsuites/samples/base_mp')
-rw-r--r--testsuites/samples/base_mp/apptask.c2
-rw-r--r--testsuites/samples/base_mp/init.c4
-rw-r--r--testsuites/samples/base_mp/system.h3
3 files changed, 7 insertions, 2 deletions
diff --git a/testsuites/samples/base_mp/apptask.c b/testsuites/samples/base_mp/apptask.c
index a9ddc7fb5d..4af904886d 100644
--- a/testsuites/samples/base_mp/apptask.c
+++ b/testsuites/samples/base_mp/apptask.c
@@ -37,6 +37,6 @@ rtems_task Application_task(
status = rtems_task_ident( RTEMS_SELF, RTEMS_SEARCH_ALL_NODES, &tid );
printf( "This task was invoked with the node argument (%" PRIdrtems_task_argument ")\n", node );
printf( "This task has the id of 0x%" PRIxrtems_id "\n", tid );
- printf( "*** END OF SAMPLE MULTIPROCESSOR APPLICATION ***\n" );
+ TEST_END();
exit( 0 );
}
diff --git a/testsuites/samples/base_mp/init.c b/testsuites/samples/base_mp/init.c
index e2a9b84002..e7780acb9f 100644
--- a/testsuites/samples/base_mp/init.c
+++ b/testsuites/samples/base_mp/init.c
@@ -18,6 +18,8 @@
/* forward declarations to avoid warnings */
rtems_task Init(rtems_task_argument argument);
+const char rtems_test_name[] = "SAMPLE MULTIPROCESSOR APPLICATION";
+
rtems_task Init(
rtems_task_argument argument
)
@@ -26,7 +28,7 @@ rtems_task Init(
rtems_id tid;
rtems_status_code status;
- printf( "\n\n*** SAMPLE MULTIPROCESSOR APPLICATION ***\n" );
+ TEST_BEGIN();
printf( "Creating and starting an application task\n" );
task_name = rtems_build_name( 'T', 'A', '1', ' ' );
status = rtems_task_create( task_name, 1, RTEMS_MINIMUM_STACK_SIZE,
diff --git a/testsuites/samples/base_mp/system.h b/testsuites/samples/base_mp/system.h
index e8210f2a15..45d8b7fba8 100644
--- a/testsuites/samples/base_mp/system.h
+++ b/testsuites/samples/base_mp/system.h
@@ -12,6 +12,7 @@
*/
#include <rtems.h>
+#include <rtems/test.h>
/* functions */
@@ -36,6 +37,8 @@ rtems_task Application_task(
#define CONFIGURE_RTEMS_INIT_TASKS_TABLE
+#define CONFIGURE_INITIAL_EXTENSIONS RTEMS_TEST_INITIAL_EXTENSION
+
/*
* Put the overrides of default configuration parameters here.
*/