summaryrefslogtreecommitdiffstats
path: root/rtems-test-template/smptest/init.c
diff options
context:
space:
mode:
authorJoel Sherrill <joel@rtems.org>2018-10-25 14:17:33 -0500
committerJoel Sherrill <joel@rtems.org>2018-10-25 14:17:33 -0500
commit6a0e43493925318caef11dbf4c5b12a4b3ddcb7d (patch)
treeb174a8de0ea25f0d4a69d315d2f2a0c47a3051c8 /rtems-test-template/smptest/init.c
parentsim-scripts/erc32-tsim.in: New file (diff)
downloadrtems-testing-6a0e43493925318caef11dbf4c5b12a4b3ddcb7d.tar.bz2
rtems-test-template: Update
Diffstat (limited to 'rtems-test-template/smptest/init.c')
-rw-r--r--rtems-test-template/smptest/init.c13
1 files changed, 7 insertions, 6 deletions
diff --git a/rtems-test-template/smptest/init.c b/rtems-test-template/smptest/init.c
index dd02dd2..5e0f502 100644
--- a/rtems-test-template/smptest/init.c
+++ b/rtems-test-template/smptest/init.c
@@ -1,5 +1,5 @@
/*
- * COPYRIGHT (c) 1989-2013.
+ * COPYRIGHT (c) 1989-2018.
* On-Line Applications Research Corporation (OAR).
*
* The license and distribution terms for this file may be
@@ -7,9 +7,10 @@
* http://www.rtems.com/license/LICENSE.
*/
-#include <tmacros.h>
#include "test_support.h"
+const char rtems_test_name[] = "@UPPER@";
+
/* forward declarations to avoid warnings */
rtems_task Init(rtems_task_argument argument);
rtems_task Test_task(rtems_task_argument argument);
@@ -31,7 +32,7 @@ rtems_task Init(
rtems_id id;
rtems_status_code status;
- puts( "\n\n*** TEST @UPPER@ ***" );
+ TEST_BEGIN();
for ( i=0; i<_SMP_Processor_count-1; i++ ) {
ch = '1' + i;
@@ -55,7 +56,7 @@ rtems_task Init(
/* XXX something goes here */
- puts( "*** END OF TEST @UPPER@ ***" );
+ TEST_END();
rtems_test_exit(0);
}
@@ -64,14 +65,14 @@ rtems_task Init(
#define CONFIGURE_APPLICATION_NEEDS_CONSOLE_DRIVER
#define CONFIGURE_APPLICATION_NEEDS_CLOCK_DRIVER
-#define CONFIGURE_SMP_APPLICATION
#define CONFIGURE_SMP_MAXIMUM_PROCESSORS 2
#define CONFIGURE_MAXIMUM_TASKS \
(1 + CONFIGURE_SMP_MAXIMUM_PROCESSORS)
#define CONFIGURE_RTEMS_INIT_TASKS_TABLE
-#define CONFIGURE_INIT
+#define CONFIGURE_INITIAL_EXTENSIONS RTEMS_TEST_INITIAL_EXTENSION
+#define CONFIGURE_INIT
#include <rtems/confdefs.h>
/* end of file */