selftests: kselftest framework: add error counter
authorShuah Khan <shuahkh@osg.samsung.com>
Fri, 4 Aug 2017 21:07:19 +0000 (15:07 -0600)
committerShuah Khan <shuahkh@osg.samsung.com>
Wed, 9 Aug 2017 16:39:05 +0000 (10:39 -0600)
commitc0bb2cf40e42b2fe5c8aa1c4f6f4d09c98839d91
treec2b7e7ac624bc43c0de04d51f5dca308ad931679
parent7d005195e9eb6518017e02c1468e3de693cc7442
selftests: kselftest framework: add error counter

Some tests track errors in addition to test failures. Add ksft_error
counter, ksft_get_error_cnt(), and ksft_test_result_error() API to
get the counter value and print error message.

Update ksft_print_cnts(), and ksft_test_num() to include error counter.

Signed-off-by: Shuah Khan <shuahkh@osg.samsung.com>
tools/testing/selftests/kselftest.h