forked from Imagelibrary/rtems
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:
@@ -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>
|
||||
|
||||
* sp01/sp01.doc, sp01/task1.c, sp16/sp16.doc, sp16/task5.c: Bypass
|
||||
|
||||
@@ -20,25 +20,19 @@
|
||||
#define CONFIGURE_INIT
|
||||
#include "system.h"
|
||||
|
||||
/* #define HAVE_MENU */
|
||||
|
||||
|
||||
rtems_task Init(
|
||||
rtems_task_argument argument
|
||||
)
|
||||
{
|
||||
rtems_time_of_day time;
|
||||
rtems_status_code status;
|
||||
Chain_Control empty;
|
||||
|
||||
puts( "\n*** RTEMS WATCHDOG ***" );
|
||||
|
||||
/* XXXXXX
|
||||
_Watchdog_Report_chain(
|
||||
"_Watchdog_Ticks_chain",
|
||||
& _Watchdog_Ticks_chain
|
||||
);
|
||||
puts( "*** END OF RTEMS WATCHDOG PROGRAM ***" );
|
||||
*/
|
||||
puts( "INIT - report on empty watchdog chain" );
|
||||
_Chain_Initialize_empty( &empty );
|
||||
_Watchdog_Report_chain( "Empty Chain", &empty );
|
||||
|
||||
build_time( &time, 12, 31, 1988, 9, 0, 0, 0 );
|
||||
|
||||
|
||||
@@ -1,2 +1,22 @@
|
||||
*** TEST WATCHDOG ***
|
||||
*** END OF TEST WATCHDOG ***
|
||||
*** RTEMS 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 ***
|
||||
|
||||
|
||||
Reference in New Issue
Block a user