2009-07-01 Joel Sherrill <joel.sherrill@OARcorp.com>

* spwatchdog/init.c, spwatchdog/spwatchdog.scn: Add test case of empty
	chain for coverage.
This commit is contained in:
Joel Sherrill
2009-07-01 19:31:53 +00:00
parent c7b38baf37
commit 605b6eb746
3 changed files with 31 additions and 12 deletions

View File

@@ -1,3 +1,8 @@
2009-07-01 Joel Sherrill <joel.sherrill@OARcorp.com>
* spwatchdog/init.c, spwatchdog/spwatchdog.scn: Add test case of empty
chain for coverage.
2009-07-01 Joel Sherrill <joel.sherrill@OARcorp.com> 2009-07-01 Joel Sherrill <joel.sherrill@OARcorp.com>
* sp01/sp01.doc, sp01/task1.c, sp16/sp16.doc, sp16/task5.c: Bypass * sp01/sp01.doc, sp01/task1.c, sp16/sp16.doc, sp16/task5.c: Bypass

View File

@@ -20,25 +20,19 @@
#define CONFIGURE_INIT #define CONFIGURE_INIT
#include "system.h" #include "system.h"
/* #define HAVE_MENU */
rtems_task Init( rtems_task Init(
rtems_task_argument argument rtems_task_argument argument
) )
{ {
rtems_time_of_day time; rtems_time_of_day time;
rtems_status_code status; rtems_status_code status;
Chain_Control empty;
puts( "\n*** RTEMS WATCHDOG ***" ); puts( "\n*** RTEMS WATCHDOG ***" );
/* XXXXXX puts( "INIT - report on empty watchdog chain" );
_Watchdog_Report_chain( _Chain_Initialize_empty( &empty );
"_Watchdog_Ticks_chain", _Watchdog_Report_chain( "Empty Chain", &empty );
& _Watchdog_Ticks_chain
);
puts( "*** END OF RTEMS WATCHDOG PROGRAM ***" );
*/
build_time( &time, 12, 31, 1988, 9, 0, 0, 0 ); build_time( &time, 12, 31, 1988, 9, 0, 0, 0 );

View File

@@ -1,2 +1,22 @@
*** TEST WATCHDOG *** *** RTEMS WATCHDOG ***
*** END OF TEST WATCHDOG *** INIT - report on empty watchdog chain
Watchdog Chain: Empty Chain 2036184
Chain is empty
INIT - rtems_timer_create - creating timer 1
INIT - timer 1 has id (0x12010001)
TA1 - rtems_timer_ident - identing timer 1
TA1 - timer 1 has id (0x12010001)
TA1 - rtems_clock_get - 09:00:00 12/31/1988
TA1 - rtems_timer_fire_after - timer 1 in 3 seconds
TA1 - rtems_task_suspend( RTEMS_SELF )
TA1 - rtems_clock_get - 09:00:03 12/31/1988
TA1 - rtems_timer_fire_after - timer 1 in 3 seconds
TA1 - rtems_task_wake_after - 1 second
TA1 - rtems_clock_get - 09:00:04 12/31/1988
TA1 - rtems_timer_reset - timer 1
Watchdog Chain: _Watchdog_Ticks_chain 202F530
300 300 20325D0 20131A0 0x12010001 0
== end of _Watchdog_Ticks_chain
TA1 - timer_deleting - timer 1
*** END OF RTEMS WATCHDOG PROGRAM ***