函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:kunit_try_catch_init

函数原型:void kunit_try_catch_init(struct kunit_try_catch *try_catch, struct kunit *test, kunit_try_catch_func_t try, kunit_try_catch_func_t catch)

返回类型:void

参数:

类型参数名称
struct kunit_try_catch *try_catch
struct kunit *test
kunit_try_catch_func_ttry
kunit_try_catch_func_tcatch
101  private: internal use only. 等于test
102  try等于try
103  catch等于catch
调用者
名称描述
kunit_test_try_catch_successful_try_no_catch
kunit_test_try_catch_unsuccessful_try_does_catch
kunit_run_case_catch_errorsPerforms all logic to run a test case. It also catches most errors that* occur in a test case and reports them as failures.