Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:lib\kunit\test.c Create Date:2022-07-28 06:38:47
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:kunit_run_tests

Proto:int kunit_run_tests(struct kunit_suite *suite)

Type:int

Parameter:

TypeParameterName
struct kunit_suite *suite
307  test_case_count = 1
309  kunit_print_subtest_start(suite)
311  When run_case cycle
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  Return 0
Caller
NameDescribe
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