summaryrefslogtreecommitdiffstats
path: root/testsuites/sptests/spwatchdog
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>2009-07-01 19:31:53 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>2009-07-01 19:31:53 +0000
commit605b6eb7461d19c51e5a57f1f8431431e2dbc4f4 (patch)
tree8397154d0e85040564cec66ec322ce8f3c9d2594 /testsuites/sptests/spwatchdog
parent2009-07-01 Joel Sherrill <joel.sherrill@OARcorp.com> (diff)
downloadrtems-605b6eb7461d19c51e5a57f1f8431431e2dbc4f4.tar.bz2
2009-07-01 Joel Sherrill <joel.sherrill@OARcorp.com>
* spwatchdog/init.c, spwatchdog/spwatchdog.scn: Add test case of empty chain for coverage.
Diffstat (limited to 'testsuites/sptests/spwatchdog')
-rw-r--r--testsuites/sptests/spwatchdog/init.c14
-rw-r--r--testsuites/sptests/spwatchdog/spwatchdog.scn24
2 files changed, 26 insertions, 12 deletions
diff --git a/testsuites/sptests/spwatchdog/init.c b/testsuites/sptests/spwatchdog/init.c
index b24f495bb7..192264859d 100644
--- a/testsuites/sptests/spwatchdog/init.c
+++ b/testsuites/sptests/spwatchdog/init.c
@@ -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 );
diff --git a/testsuites/sptests/spwatchdog/spwatchdog.scn b/testsuites/sptests/spwatchdog/spwatchdog.scn
index 3127f79896..5dd19aea37 100644
--- a/testsuites/sptests/spwatchdog/spwatchdog.scn
+++ b/testsuites/sptests/spwatchdog/spwatchdog.scn
@@ -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 ***
+