Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:lib\kunit\test.c Create Date:2022-07-28 06:38:45
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:kunit_do_assertion

Proto:void kunit_do_assertion(struct kunit *test, struct kunit_assert *assert, bool pass, const char *fmt, ...)

Type:void

Parameter:

TypeParameterName
struct kunit *test
struct kunit_assert *assert
boolpass
const char *fmt
159  If pass Then Return
162  va_start(args, fmt)
164  fmt = fmt
165  va = args
167  kunit_fail(test, assert)
169  va_end(args)
171  If type == KUNIT_ASSERTION Then kunit_abort(test)