Home
last modified time | relevance | path

Searched refs:kunit_test (Results 1 – 10 of 10) sorted by relevance

/linux/rust/kernel/
H A Dkunit.rs68 let kunit_test = unsafe { $crate::bindings::kunit_get_current_test() }; localVariable
69 if kunit_test.is_null() {
116 // - The `kunit_test` pointer is valid because we got it from
134 kunit_test,
147 $crate::bindings::__kunit_abort(kunit_test);
/linux/lib/kunit/
H A Dtest.c39 if (!current->kunit_test) in __kunit_fail_current_test_impl()
42 kunit_set_failure(current->kunit_test); in __kunit_fail_current_test_impl()
49 buffer = kunit_kmalloc(current->kunit_test, len, GFP_KERNEL); in __kunit_fail_current_test_impl()
57 kunit_err(current->kunit_test, "%s:%d: %s", file, line, buffer); in __kunit_fail_current_test_impl()
58 kunit_kfree(current->kunit_test, buffer); in __kunit_fail_current_test_impl()
477 current->kunit_test = test; in kunit_try_run_case()
493 current->kunit_test = test; in kunit_try_run_case_cleanup()
970 current->kunit_test = NULL; in kunit_cleanup()
H A Dstring-stream-test.c90 * Avoid calling deactivate_static_stub() or changing current->kunit_test in string_stream_destroy_stub()
147 /* Set current->kunit_test to fake_test so the static stub will be called. */ in string_stream_resource_free_test()
148 current->kunit_test = fake_test; in string_stream_resource_free_test()
153 /* Set current->kunit_test back to current test. */ in string_stream_resource_free_test()
154 current->kunit_test = test; in string_stream_resource_free_test()
/linux/include/kunit/
H A Dtest-bug.h46 return current->kunit_test; in kunit_get_current_test()
/linux/net/mctp/test/
H A Dutils.c96 struct kunit *test = current->kunit_test; in mctp_test_dst_output()
H A Droute-test.c1321 struct kunit *test = current->kunit_test; in test_dev_header_create()
/linux/mm/kasan/
H A Dreport.c193 test = current->kunit_test; in fail_non_kasan_kunit_test()
/linux/Documentation/dev-tools/kunit/
H A Dusage.rst740 This test-only code can be made more useful by accessing the current ``kunit_test``
749 We can do this via the ``kunit_test`` field in ``task_struct``, which we can
H A Drunning_tips.rst221 As of 5.13, the only difference is that ``current->kunit_test`` will
/linux/mm/
H A Dslub.c848 resource = kunit_find_named_resource(current->kunit_test, "slab_errors"); in slab_add_kunit_errors()
864 resource = kunit_find_named_resource(current->kunit_test, "slab_errors"); in slab_in_kunit_test()