Changeset 605b6eb7 in rtems


Ignore:
Timestamp:
Jul 1, 2009, 7:31:53 PM (10 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.10, 4.11, master
Children:
37cff02
Parents:
c7b38ba
Message:

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

  • spwatchdog/init.c, spwatchdog/spwatchdog.scn: Add test case of empty chain for coverage.
Location:
testsuites/sptests
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • testsuites/sptests/ChangeLog

    rc7b38ba r605b6eb7  
     12009-07-01      Joel Sherrill <joel.sherrill@OARcorp.com>
     2
     3        * spwatchdog/init.c, spwatchdog/spwatchdog.scn: Add test case of empty
     4        chain for coverage.
     5
    162009-07-01      Joel Sherrill <joel.sherrill@OARcorp.com>
    27
  • testsuites/sptests/spwatchdog/init.c

    rc7b38ba r605b6eb7  
    2121#include "system.h"
    2222
    23 /* #define HAVE_MENU */
    24 
    25 
    2623rtems_task Init(
    2724  rtems_task_argument argument
     
    3027  rtems_time_of_day  time;
    3128  rtems_status_code  status;
     29  Chain_Control      empty;
    3230
    3331   puts( "\n*** RTEMS WATCHDOG ***" );
    3432
    35 /*  XXXXXX
    36   _Watchdog_Report_chain(
    37    "_Watchdog_Ticks_chain",
    38     & _Watchdog_Ticks_chain
    39   );
    40   puts( "*** END OF RTEMS WATCHDOG PROGRAM ***" );
    41 */
     33  puts( "INIT - report on empty watchdog chain" );
     34  _Chain_Initialize_empty( &empty );
     35  _Watchdog_Report_chain( "Empty Chain", &empty );
    4236
    4337  build_time( &time, 12, 31, 1988, 9, 0, 0, 0 );
  • testsuites/sptests/spwatchdog/spwatchdog.scn

    rc7b38ba r605b6eb7  
    1 *** TEST WATCHDOG ***
    2 *** END OF TEST WATCHDOG ***
     1*** RTEMS WATCHDOG ***
     2INIT - report on empty watchdog chain
     3Watchdog Chain: Empty Chain 2036184
     4Chain is empty
     5INIT - rtems_timer_create - creating timer 1
     6INIT - timer 1 has id (0x12010001)
     7TA1 - rtems_timer_ident - identing timer 1
     8TA1 - timer 1 has id (0x12010001)
     9TA1 - rtems_clock_get - 09:00:00   12/31/1988
     10TA1 - rtems_timer_fire_after - timer 1 in 3 seconds
     11TA1 - rtems_task_suspend( RTEMS_SELF )
     12TA1 - rtems_clock_get - 09:00:03   12/31/1988
     13TA1 - rtems_timer_fire_after - timer 1 in 3 seconds
     14TA1 - rtems_task_wake_after - 1 second
     15TA1 - rtems_clock_get - 09:00:04   12/31/1988
     16TA1 - rtems_timer_reset - timer 1
     17Watchdog Chain: _Watchdog_Ticks_chain 202F530
     18 300   300 20325D0 20131A0 0x12010001 0
     19== end of _Watchdog_Ticks_chain
     20TA1 - timer_deleting - timer 1
     21*** END OF RTEMS WATCHDOG PROGRAM ***
     22
Note: See TracChangeset for help on using the changeset viewer.