diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2014-03-24 07:53:45 +0100 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2014-03-25 13:19:22 +0100 |
commit | 9b44339c14391b36fc53172a678c40b65f23f966 (patch) | |
tree | c2ffb1244f31c1eef69f9de42e66851e861edf2a /testsuites/sptests/spwatchdog | |
parent | sapi: Add profiling report for tests (diff) | |
download | rtems-9b44339c14391b36fc53172a678c40b65f23f966.tar.bz2 |
score: Delete _Watchdog_Report()
Delete _Watchdog_Report_chain(). These two functions use printk() with
thread dispatching and interrupts disabled. So they are pretty useless
in real applications. They are not part of the application APIs. They
are only used in one test and do nothing useful in this test.
Diffstat (limited to 'testsuites/sptests/spwatchdog')
-rw-r--r-- | testsuites/sptests/spwatchdog/init.c | 6 | ||||
-rw-r--r-- | testsuites/sptests/spwatchdog/spwatchdog.doc | 4 | ||||
-rw-r--r-- | testsuites/sptests/spwatchdog/spwatchdog.scn | 15 | ||||
-rw-r--r-- | testsuites/sptests/spwatchdog/task1.c | 12 |
4 files changed, 0 insertions, 37 deletions
diff --git a/testsuites/sptests/spwatchdog/init.c b/testsuites/sptests/spwatchdog/init.c index c104aecc0a..2b1bc3d83a 100644 --- a/testsuites/sptests/spwatchdog/init.c +++ b/testsuites/sptests/spwatchdog/init.c @@ -53,17 +53,11 @@ rtems_task Init( { rtems_time_of_day time; rtems_status_code status; - Chain_Control empty; TEST_BEGIN(); - puts( "INIT - report on empty watchdog chain" ); - test_watchdog_static_init(); - _Chain_Initialize_empty( &empty ); - _Watchdog_Report_chain( "Empty Chain", &empty ); - build_time( &time, 12, 31, 1988, 9, 0, 0, 0 ); status = rtems_clock_set( &time ); diff --git a/testsuites/sptests/spwatchdog/spwatchdog.doc b/testsuites/sptests/spwatchdog/spwatchdog.doc index b5dd6cf512..b8080b2ea5 100644 --- a/testsuites/sptests/spwatchdog/spwatchdog.doc +++ b/testsuites/sptests/spwatchdog/spwatchdog.doc @@ -12,12 +12,8 @@ test set name: spwatchdog directives: - SCORE _Watchdog_Report - SCORE _Watchdog_Report_chain various timer, delay, and clock services concepts: + Ensure that the SCORE Watchdog routines operate properly. - -+ Ensure that the SCORE Watchdog reporting routines operate properly. diff --git a/testsuites/sptests/spwatchdog/spwatchdog.scn b/testsuites/sptests/spwatchdog/spwatchdog.scn index 622e99e8d2..15f85b5899 100644 --- a/testsuites/sptests/spwatchdog/spwatchdog.scn +++ b/testsuites/sptests/spwatchdog/spwatchdog.scn @@ -1,7 +1,4 @@ *** RTEMS WATCHDOG *** -INIT - report on empty watchdog chain -Watchdog Chain: Empty Chain 203753 -Chain is empt INIT - rtems_timer_create - creating timer 1 INIT - timer 1 has id (0x12010001) TA1 - rtems_timer_ident - identing timer 1 @@ -14,17 +11,5 @@ TA1 - rtems_timer_fire_after - timer 1 in 3 seconds TA1 - rtems_task_wake_after - 1 second TA1 - rtems_clock_get_tod - 09:00:04 12/31/1988 TA1 - rtems_timer_reset - timer 1 -TA1 - _Watchdog_Report_chain - with name -Watchdog Chain: _Watchdog_Ticks_chain 2030F1 - 300 300 2033B40 201391C 0x12010001 -== end of _Watchdog_Ticks_chain -TA1 - _Watchdog_Report_chain - no name -Watchdog Chain: 2030F1 - 300 300 2033B40 201391C 0x12010001 -== end of -TA1 - _Watchdog_Report - with name -first 300 300 2033B40 201391C 0x12010001 -TA1 - _Watchdog_Report - no name - 299 300 2033B40 201391C 0x12010001 TA1 - timer_deleting - timer 1 *** END OF RTEMS WATCHDOG PROGRAM *** diff --git a/testsuites/sptests/spwatchdog/task1.c b/testsuites/sptests/spwatchdog/task1.c index f17ae9d171..568ad86197 100644 --- a/testsuites/sptests/spwatchdog/task1.c +++ b/testsuites/sptests/spwatchdog/task1.c @@ -77,18 +77,6 @@ rtems_task Task_1( status = rtems_timer_reset( tmid ); directive_failed( status, "rtems_timer_reset" ); - puts( "TA1 - _Watchdog_Report_chain - with name" ); - _Watchdog_Report_chain( "_Watchdog_Ticks_chain", & _Watchdog_Ticks_chain ); - - puts( "TA1 - _Watchdog_Report_chain - no name" ); - _Watchdog_Report_chain( NULL, & _Watchdog_Ticks_chain); - - puts( "TA1 - _Watchdog_Report - with name" ); - _Watchdog_Report("first", (Watchdog_Control *)_Chain_First(&_Watchdog_Ticks_chain)); - - puts( "TA1 - _Watchdog_Report - no name" ); - _Watchdog_Report( NULL, (Watchdog_Control *)_Chain_First(&_Watchdog_Ticks_chain) ); - puts( "TA1 - timer_deleting - timer 1" ); status = rtems_timer_delete( tmid ); directive_failed( status, "rtems_timer_delete" ); |