summaryrefslogtreecommitdiffstats
path: root/c/src/tests/samples/hello
diff options
context:
space:
mode:
Diffstat (limited to 'c/src/tests/samples/hello')
-rw-r--r--c/src/tests/samples/hello/init.c5
-rw-r--r--c/src/tests/samples/hello/system.h19
2 files changed, 12 insertions, 12 deletions
diff --git a/c/src/tests/samples/hello/init.c b/c/src/tests/samples/hello/init.c
index 9c56c4edda..c1c25bf045 100644
--- a/c/src/tests/samples/hello/init.c
+++ b/c/src/tests/samples/hello/init.c
@@ -21,11 +21,8 @@
* $Id$
*/
+#define TEST_INIT
#include "system.h"
-#undef EXTERN
-#define EXTERN
-#include "conftbl.h"
-#include "gvar.h"
#include <stdio.h>
rtems_task Init(
diff --git a/c/src/tests/samples/hello/system.h b/c/src/tests/samples/hello/system.h
index 49deb52d4a..8af4376e0f 100644
--- a/c/src/tests/samples/hello/system.h
+++ b/c/src/tests/samples/hello/system.h
@@ -14,19 +14,22 @@
* $Id$
*/
-#include <rtems.h>
-#include <bsp.h>
+#include <tmacros.h>
-#include <stdio.h>
+/* functions */
-/* Miscellaneous */
+rtems_task Init(
+ rtems_task_argument argument
+);
-#define EXTERN extern /* external definition */
+/* configuration information */
-/* macros */
+#define CONFIGURE_TEST_NEEDS_CONSOLE_DRIVER
-/* structures */
+#include <confdefs.h>
-#include "gvar.h"
+/* global variables */
+
+TEST_EXTERN rtems_id Global_variable; /* example global variable */
/* end of include file */