Skip to content
Commit 45940cf8 authored by Daniel Leung's avatar Daniel Leung Committed by Maureen Helm
Browse files

tests: kernel/common: fix inadequate failing to thread context



The thread context test has insufficient checkings for failing
so add them:

() The variable rv for pass/fail is set but never checked. So
   add a check to fail the test if such indicated.
() Each thread's pass variable is set to TC_FAIL (== 1) and
   the check for successful thread execution simply checks
   if pass variable is not zero, which is always true. So
   change it so the check for failing condition is reasonable.

Signed-off-by: default avatarDaniel Leung <daniel.leung@intel.com>
parent b4691648
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment