diff options
Diffstat (limited to 'testsuites/tmtests/tmoverhd')
-rw-r--r-- | testsuites/tmtests/tmoverhd/system.h | 39 | ||||
-rw-r--r-- | testsuites/tmtests/tmoverhd/testtask.c | 11 |
2 files changed, 43 insertions, 7 deletions
diff --git a/testsuites/tmtests/tmoverhd/system.h b/testsuites/tmtests/tmoverhd/system.h index 4444a53c4c..9fbbf116dd 100644 --- a/testsuites/tmtests/tmoverhd/system.h +++ b/testsuites/tmtests/tmoverhd/system.h @@ -17,5 +17,42 @@ #include <coverhd.h> #include <tmacros.h> +/* functions */ + +rtems_task Init( + rtems_task_argument argument +); + +rtems_timer_service_routine Timer_handler( + rtems_id argument +); + +rtems_asr Isr_handler( + rtems_signal_set signals +); + +rtems_asr Asr_handler( + rtems_signal_set signals +); + +rtems_task task_func(); + +void null_func(); + +rtems_status_code Empty_directive(); + #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_TICKS_PER_TIMESLICE 0 + +#include <confdefs.h> + +/* end of include file */ diff --git a/testsuites/tmtests/tmoverhd/testtask.c b/testsuites/tmtests/tmoverhd/testtask.c index 9daa1f0949..f5cac161bb 100644 --- a/testsuites/tmtests/tmoverhd/testtask.c +++ b/testsuites/tmtests/tmoverhd/testtask.c @@ -11,11 +11,8 @@ * $Id$ */ +#define TEST_INIT #include "system.h" -#undef EXTERN -#define EXTERN -#include "conftbl.h" -#include "gvar.h" rtems_unsigned8 Memory_area[ 2048 ]; rtems_unsigned8 Internal_port_area[ 256 ]; @@ -33,7 +30,9 @@ rtems_task Init( Set_find_average_overhead( TRUE ); - puts( "\n\n*** TIME TEST overhead ***" ); + Print_Warning(); + + puts( "\n\n*** TIME TEST OVERHEAD ***" ); status = rtems_task_create( rtems_build_name( 'T', 'A', '1', ' ' ), @@ -1274,7 +1273,7 @@ pause(); 0 ); - puts( "*** END OF TIME OVERHEAD ***\n" ); + puts( "*** END OF TIME OVERHEAD ***" ); exit( 0 ); } |