Searched refs:try_catch (Results 1 – 7 of 7) sorted by relevance
/Linux-v5.15/lib/kunit/ |
D | try-catch.c | 17 void __noreturn kunit_try_catch_throw(struct kunit_try_catch *try_catch) in kunit_try_catch_throw() argument 19 try_catch->try_result = -EFAULT; in kunit_try_catch_throw() 20 complete_and_exit(try_catch->try_completion, -EFAULT); in kunit_try_catch_throw() 26 struct kunit_try_catch *try_catch = data; in kunit_generic_run_threadfn_adapter() local 28 try_catch->try(try_catch->context); in kunit_generic_run_threadfn_adapter() 30 complete_and_exit(try_catch->try_completion, 0); in kunit_generic_run_threadfn_adapter() 58 void kunit_try_catch_run(struct kunit_try_catch *try_catch, void *context) in kunit_try_catch_run() argument 61 struct kunit *test = try_catch->test; in kunit_try_catch_run() 65 try_catch->context = context; in kunit_try_catch_run() 66 try_catch->try_completion = &try_completion; in kunit_try_catch_run() [all …]
|
D | kunit-test.c | 13 struct kunit_try_catch *try_catch; member 35 struct kunit_try_catch *try_catch = ctx->try_catch; in kunit_test_try_catch_successful_try_no_catch() local 37 kunit_try_catch_init(try_catch, in kunit_test_try_catch_successful_try_no_catch() 41 kunit_try_catch_run(try_catch, test); in kunit_test_try_catch_successful_try_no_catch() 50 struct kunit_try_catch *try_catch = ctx->try_catch; in kunit_test_unsuccessful_try() local 52 kunit_try_catch_throw(try_catch); in kunit_test_unsuccessful_try() 67 struct kunit_try_catch *try_catch = ctx->try_catch; in kunit_test_try_catch_unsuccessful_try_does_catch() local 69 kunit_try_catch_init(try_catch, in kunit_test_try_catch_unsuccessful_try_does_catch() 73 kunit_try_catch_run(try_catch, test); in kunit_test_try_catch_unsuccessful_try_does_catch() 86 ctx->try_catch = kunit_kmalloc(test, in kunit_try_catch_test_init() [all …]
|
D | try-catch-impl.h | 17 static inline void kunit_try_catch_init(struct kunit_try_catch *try_catch, in kunit_try_catch_init() argument 22 try_catch->test = test; in kunit_try_catch_init() 23 try_catch->try = try; in kunit_try_catch_init() 24 try_catch->catch = catch; in kunit_try_catch_init()
|
D | test.c | 267 kunit_try_catch_throw(&test->try_catch); /* Does not return. */ in kunit_abort() 384 int try_exit_code = kunit_try_catch_get_result(&test->try_catch); in kunit_catch_run_case() 421 struct kunit_try_catch *try_catch; in kunit_run_case_catch_errors() local 424 try_catch = &test->try_catch; in kunit_run_case_catch_errors() 426 kunit_try_catch_init(try_catch, in kunit_run_case_catch_errors() 433 kunit_try_catch_run(try_catch, &context); in kunit_run_case_catch_errors()
|
/Linux-v5.15/include/kunit/ |
D | try-catch.h | 56 void kunit_try_catch_run(struct kunit_try_catch *try_catch, void *context); 58 void __noreturn kunit_try_catch_throw(struct kunit_try_catch *try_catch); 60 static inline int kunit_try_catch_get_result(struct kunit_try_catch *try_catch) in kunit_try_catch_get_result() argument 62 return try_catch->try_result; in kunit_try_catch_get_result()
|
D | test.h | 259 struct kunit_try_catch try_catch; member 702 kunit_try_catch_throw(&((test_or_suite)->try_catch)); \
|
/Linux-v5.15/Documentation/dev-tools/kunit/ |
D | style.rst | 105 Part of the ``kunit`` implementation itself, testing the ``try_catch`` area.
|