commit | f435fda31318c4427e9e39140f5cea27f0641631 | [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 24 21:16:17 2018 +0530 |
tree | aed6bd2d1eee795d934518d96d1fb3dec5d99b82 | |
parent | f06a1d84ed51bdb97109e2f564071f242216d326 [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>