Lines Matching refs:try_catch
19 struct kunit_try_catch *try_catch; member
41 struct kunit_try_catch *try_catch = ctx->try_catch; in kunit_test_try_catch_successful_try_no_catch() local
43 kunit_try_catch_init(try_catch, in kunit_test_try_catch_successful_try_no_catch()
47 kunit_try_catch_run(try_catch, test); in kunit_test_try_catch_successful_try_no_catch()
56 struct kunit_try_catch *try_catch = ctx->try_catch; in kunit_test_unsuccessful_try() local
58 kunit_try_catch_throw(try_catch); in kunit_test_unsuccessful_try()
73 struct kunit_try_catch *try_catch = ctx->try_catch; in kunit_test_try_catch_unsuccessful_try_does_catch() local
75 kunit_try_catch_init(try_catch, in kunit_test_try_catch_unsuccessful_try_does_catch()
79 kunit_try_catch_run(try_catch, test); in kunit_test_try_catch_unsuccessful_try_does_catch()
92 ctx->try_catch = kunit_kmalloc(test, in kunit_try_catch_test_init()
93 sizeof(*ctx->try_catch), in kunit_try_catch_test_init()
95 KUNIT_ASSERT_NOT_ERR_OR_NULL(test, ctx->try_catch); in kunit_try_catch_test_init()
127 struct kunit_try_catch *try_catch = ctx->try_catch; in kunit_test_fault_null_dereference() local
129 kunit_try_catch_init(try_catch, in kunit_test_fault_null_dereference()
133 kunit_try_catch_run(try_catch, test); in kunit_test_fault_null_dereference()
135 KUNIT_EXPECT_EQ(test, try_catch->try_result, -EINTR); in kunit_test_fault_null_dereference()