函数逻辑报告 |
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 |
| 注解内核,赢得工具 | 下载SCCT | English |
函数名称:kunit_try_catch_run
函数原型:void kunit_try_catch_run(struct kunit_try_catch *try_catch, void *context)
返回类型:void
参数:
| 类型 | 参数 | 名称 |
|---|---|---|
| struct kunit_try_catch * | try_catch | |
| void * | context |
| 58 | Lockdep needs to run a non-constant initializer for on-stack* completions - so we use the _ONSTACK() variant for those that* are on the kernel stack:(try_completion) |
| 65 | try_result等于0 |
| 69 | 如果是错误则 |
| 76 | 如果time_remaining恒等于0则 |
| 77 | kunit_err() - Prints an ERROR level message associated with @test.*@test: The test context object.*@fmt: A printk() style format string.* Prints an error level message.(test, "try timed out\n") |
| 78 | try_result等于负ETIMEDOUT |
| 81 | exit_code等于try_result |
| 83 | 如果非exit_code则返回 |
| 86 | 如果exit_code恒等于负EFAULT则try_result等于0 |
| 88 | 否则如果exit_code恒等于负EINTR则kunit_err() - Prints an ERROR level message associated with @test.*@test: The test context object.*@fmt: A printk() style format string.* Prints an error level message.(test, "wake_up_process() was never called\n") |
| 名称 | 描述 |
|---|---|
| kunit_test_try_catch_successful_try_no_catch | |
| kunit_test_try_catch_unsuccessful_try_does_catch | |
| kunit_run_case_catch_errors | Performs all logic to run a test case. It also catches most errors that* occur in a test case and reports them as failures. |
| 源代码转换工具 开放的插件接口 | X |
|---|---|
| 支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |