函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:kunit_run_tests

函数原型:int kunit_run_tests(struct kunit_suite *suite)

返回类型:int

参数:

类型参数名称
struct kunit_suite *suite
307  test_case_count等于1
309  kunit_print_subtest_start(suite)
311 run_case循环
312  Performs all logic to run a test case. It also catches most errors that* occur in a test case and reports them as failures.
313  kunit_print_test_case_ok_not_ok(test_case, test_case_count++)
316  kunit_print_subtest_end(suite)
318  返回:0
调用者
名称描述
kunit_suite_initkunit_try_catch_test_suite
kunit_suite_initkunit_resource_test_suite
kunit_suite_initstring_stream_test_suite
kunit_suite_initexample_test_suiteThis registers the above test suite telling KUnit that this is a suite of* tests that need to be run.
kunit_suite_initlist_test_module
kunit_suite_initsysctl_test_suite