Commit Graph

12 Commits (mbed-os-5.13.2)

Author SHA1 Message Date
Martin Kojtal 8de11211d7 Watchdog: remove VirtualWatchdog
We will provide documentation how to create your own VirtualWatchdog. It's simple,
create timeout and watchdog objects.

This class brought lot of discussion and questions. After our refactor we made this class
just a linked list of objects - something tickers can do as well (they already have linked list) and handling hw should be
done via Watchdog due to the limitations (timeout can be set only once per app!).
2019-07-11 11:55:29 +01:00
Filip Jagodzinski 95f38c3383 Watchdog: Fix unittests
Compare get_timeout against the last timeout successfully set.
Merge most of the test cases into one. Do not rely on the tests
execution order.
Fix the watchdog_api_stub to keep timeout value set by init function.
2019-07-11 11:55:29 +01:00
Martin Kojtal 8024e405f8 Watchdog: remove config value for timeout, set it dynamically
Use start method to set timeout
2019-07-11 11:55:29 +01:00
Martin Kojtal 1acd3d3db3 VirtualWatchdog: process fail test expects 0 as reset - no ticker running 2019-07-11 11:55:28 +01:00
Filip Jagodzinski db52d0068e Fix more unittest errors 2019-07-11 11:55:27 +01:00
Filip Jagodzinski 664c6ab82d Fix unittest errors 2019-07-11 11:55:27 +01:00
Martin Kojtal 90033869d9 unittest: add virtualwatchdog stub 2019-07-11 11:55:26 +01:00
Martin Kojtal b40258b1ef watchdog unittest: fix naming after refactor 2019-07-11 11:55:26 +01:00
Martin Kojtal 45a16847df unittest: move watchdog files to drivers
Test VirtualWatchdog and Watchdog
2019-07-11 11:55:26 +01:00
Martin Kojtal bc8fc539b6 Watchdog: update unittests 2019-07-11 11:55:25 +01:00
Rajkumar Kanagaraj 0a5ca29273 Incorporated the Reivew Comments 2019-07-11 11:55:15 +01:00
Rajkumar Kanagaraj 16b340ea60 SW watchdog unittest cases
-Added the mock class function to mock mbed_assert_internal
  -Added the unit test case to test start,kick,stop
  -Modified the interface api name from is_alive to process
  -added the unit test cases for process
2019-07-11 11:55:14 +01:00