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_fail

Proto:static void kunit_fail(struct kunit *test, struct kunit_assert *assert)

Type:void

Parameter:

TypeParameterName
struct kunit *test
struct kunit_assert *assert
121  kunit_set_failure(test)
123  stream = alloc_string_stream(test, GFP_KERNEL)
124  If Not stream Then
125  WARN(true, "Could not allocate stream to print failed assertion in %s:%d\n", file, line)
129  Return
132  format(assert, stream)
134  kunit_print_string_stream(test, stream)
136  WARN_ON(string_stream_destroy(stream))
Caller
NameDescribe
kunit_do_assertion