commit | 5e545e47fb1ea288d41503b2ceb3f513669c7f47 | [log] [tgz] |
---|---|---|
author | Adithya Baglody <adithya.nagaraj.baglody@intel.com> | Wed Nov 29 16:11:03 2017 +0530 |
committer | Anas Nashif <nashif@linux.intel.com> | Wed Jan 17 07:48:08 2018 -0500 |
tree | a2859e5468059f7b33a726af91b7e7d571abdcc4 | |
parent | c92047fcb758a9500b1b1a9927317c4b67593830 [diff] |
ztest: cleanup phase should reset the timeout queue. Reusing the k_thread structure requires a cleanup of all essential info. We need to remove the ztest_thread information from the timeout_q. If left untouched, when a tick occurs the thread's delta_ticks_from_prev would be corrupted. This inturn causes a chain reaction of problems. Thus once the unit test is completed the timeout_q is scrubbed. Signed-off-by: Adithya Baglody <adithya.nagaraj.baglody@intel.com>