函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:lib\kunit\test.c Create Date:2022-07-27 07:36:23
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:kunit_fail

函数原型:static void kunit_fail(struct kunit *test, struct kunit_assert *assert)

返回类型:void

参数:

类型参数名称
struct kunit *test
struct kunit_assert *assert
121  kunit_set_failure(test)
123  stream等于alloc_string_stream(test, GFP_KERNEL)
124  如果非stream
125  WARN(true, "Could not allocate stream to print failed assertion in %s:%d\n", file, line)
129  返回
132  format(assert, stream)
134  kunit_print_string_stream(test, stream)
136  WARN_ON(string_stream_destroy(stream))
调用者
名称描述
kunit_do_assertion