Searched refs:kunit_test (Results 1 – 10 of 10) sorted by relevance
/linux/rust/kernel/ |
H A D | kunit.rs | 68 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 D | test.c | 39 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 D | string-stream-test.c | 90 * 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 D | test-bug.h | 46 return current->kunit_test; in kunit_get_current_test()
|
/linux/net/mctp/test/ |
H A D | utils.c | 96 struct kunit *test = current->kunit_test; in mctp_test_dst_output()
|
H A D | route-test.c | 1321 struct kunit *test = current->kunit_test; in test_dev_header_create()
|
/linux/mm/kasan/ |
H A D | report.c | 193 test = current->kunit_test; in fail_non_kasan_kunit_test()
|
/linux/Documentation/dev-tools/kunit/ |
H A D | usage.rst | 740 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 D | running_tips.rst | 221 As of 5.13, the only difference is that ``current->kunit_test`` will
|
/linux/mm/ |
H A D | slub.c | 848 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()
|