diff options
Diffstat (limited to 'c/src/tests/tmtests/tm01')
-rw-r--r-- | c/src/tests/tmtests/tm01/system.h | 22 | ||||
-rw-r--r-- | c/src/tests/tmtests/tm01/task1.c | 8 |
2 files changed, 25 insertions, 5 deletions
diff --git a/c/src/tests/tmtests/tm01/system.h b/c/src/tests/tmtests/tm01/system.h index 4444a53c4c..190361f77c 100644 --- a/c/src/tests/tmtests/tm01/system.h +++ b/c/src/tests/tmtests/tm01/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_SEMAPHORES 1 +#define CONFIGURE_TICKS_PER_TIMESLICE 0 + +#include <confdefs.h> + +/* end of include file */ diff --git a/c/src/tests/tmtests/tm01/task1.c b/c/src/tests/tmtests/tm01/task1.c index c4e4e4bc0d..cc1cfca70f 100644 --- a/c/src/tests/tmtests/tm01/task1.c +++ b/c/src/tests/tmtests/tm01/task1.c @@ -11,11 +11,8 @@ * $Id$ */ +#define TEST_INIT #include "system.h" -#undef EXTERN -#define EXTERN -#include "conftbl.h" -#include "gvar.h" rtems_task Test_task( rtems_task_argument argument @@ -27,6 +24,8 @@ rtems_task Init( { rtems_status_code status; + Print_Warning(); + puts( "\n\n*** TIME TEST 1 ***" ); Task_name[ 1 ] = rtems_build_name( 'T', 'A', '1', ' ' ); @@ -185,5 +184,6 @@ rtems_task Test_task( CALLING_OVERHEAD_SEMAPHORE_RELEASE ); + puts( "*** END OF TEST 1 ***" ); exit( 0 ); } |