summaryrefslogtreecommitdiffstats
path: root/c/src/tests/tmtests/tm28
diff options
context:
space:
mode:
Diffstat (limited to 'c/src/tests/tmtests/tm28')
-rw-r--r--c/src/tests/tmtests/tm28/system.h22
-rw-r--r--c/src/tests/tmtests/tm28/task1.c12
2 files changed, 27 insertions, 7 deletions
diff --git a/c/src/tests/tmtests/tm28/system.h b/c/src/tests/tmtests/tm28/system.h
index 4444a53c4c..4fa010796f 100644
--- a/c/src/tests/tmtests/tm28/system.h
+++ b/c/src/tests/tmtests/tm28/system.h
@@ -17,5 +17,25 @@
#include <coverhd.h>
#include <tmacros.h>
+/* functions */
+
+rtems_task Init(
+ rtems_task_argument argument
+);
+
#include <timesys.h>
-#include <timegvar.h>
+
+/* configuration information */
+
+#define CONFIGURE_TMTEST
+
+#define CONFIGURE_TEST_NEEDS_CONSOLE_DRIVER
+#define CONFIGURE_TEST_NEEDS_TIMER_DRIVER
+
+#define CONFIGURE_MAXIMUM_TASKS 2
+#define CONFIGURE_MAXIMUM_PORTS 1
+#define CONFIGURE_TICKS_PER_TIMESLICE 0
+
+#include <confdefs.h>
+
+/* end of include file */
diff --git a/c/src/tests/tmtests/tm28/task1.c b/c/src/tests/tmtests/tm28/task1.c
index c6af6fb03f..bd0682be19 100644
--- a/c/src/tests/tmtests/tm28/task1.c
+++ b/c/src/tests/tmtests/tm28/task1.c
@@ -11,16 +11,13 @@
* $Id$
*/
+#define TEST_INIT
#include "system.h"
-#undef EXTERN
-#define EXTERN
-#include "conftbl.h"
-#include "gvar.h"
rtems_id Port_id;
-rtems_unsigned8 Internal_area[ 256 ];
-rtems_unsigned8 External_area[ 256 ];
+rtems_unsigned8 Internal_area[ 256 ] CPU_STRUCTURE_ALIGNMENT;
+rtems_unsigned8 External_area[ 256 ] CPU_STRUCTURE_ALIGNMENT;
rtems_task Test_task(
rtems_task_argument argument
@@ -32,6 +29,8 @@ rtems_task Init(
{
rtems_status_code status;
+ Print_Warning();
+
puts( "\n\n*** TIME TEST 28 ***" );
status = rtems_task_create(
@@ -130,5 +129,6 @@ rtems_task Test_task (
CALLING_OVERHEAD_PORT_DELETE
);
+ puts( "*** END OF TEST 28 ***" );
exit( 0 );
}