Function report |
Source Code:lib\kunit\try-catch.c |
Create Date:2022-07-28 06:39:05 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
home page | Tree |
Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:kunit_try_catch_run
Proto:void kunit_try_catch_run(struct kunit_try_catch *try_catch, void *context)
Type:void
Parameter:
Type | Parameter | Name |
---|---|---|
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 | If IS_ERR(task_struct) Then |
76 | If time_remaining == 0 Then |
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 | If Not exit_code Then Return |
86 | If exit_code == -EFAULT Then try_result = 0 |
88 | Else if exit_code == -EINTR Then 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") |
Name | Describe |
---|---|
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. |
Source code conversion tool public plug-in interface | X |
---|---|
Support c/c++/esqlc/java Oracle/Informix/Mysql Plug-in can realize: logical Report Code generation and batch code conversion |