/linux-6.1.9/drivers/gpu/drm/tests/ |
D | drm_plane_helper_test.c | 111 KUNIT_EXPECT_TRUE(test, plane_state.visible); in drm_test_check_plane_state() 112 KUNIT_EXPECT_TRUE(test, check_src_eq(&plane_state, 0, 0, 1024 << 16, 768 << 16)); in drm_test_check_plane_state() 113 KUNIT_EXPECT_TRUE(test, check_crtc_eq(&plane_state, 0, 0, 1024, 768)); in drm_test_check_plane_state() 122 KUNIT_EXPECT_TRUE(test, plane_state.visible); in drm_test_check_plane_state() 123 KUNIT_EXPECT_TRUE(test, check_src_eq(&plane_state, 0, 0, 768 << 16, 1024 << 16)); in drm_test_check_plane_state() 124 KUNIT_EXPECT_TRUE(test, check_crtc_eq(&plane_state, 0, 0, 1024, 768)); in drm_test_check_plane_state() 142 KUNIT_EXPECT_TRUE(test, plane_state.visible); in drm_test_check_plane_state() 143 KUNIT_EXPECT_TRUE(test, check_src_eq(&plane_state, 0, 0, 1023 << 16, 767 << 16)); in drm_test_check_plane_state() 144 KUNIT_EXPECT_TRUE(test, check_crtc_eq(&plane_state, 0, 0, 1023, 767)); in drm_test_check_plane_state() 159 KUNIT_EXPECT_TRUE(test, plane_state.visible); in drm_test_check_plane_state() [all …]
|
D | drm_dp_mst_helper_test.c | 188 KUNIT_EXPECT_TRUE(test, sideband_msg_req_encode_decode(&in)); in drm_test_dp_mst_sideband_msg_req_decode() 192 KUNIT_EXPECT_TRUE(test, sideband_msg_req_encode_decode(&in)); in drm_test_dp_mst_sideband_msg_req_decode() 196 KUNIT_EXPECT_TRUE(test, sideband_msg_req_encode_decode(&in)); in drm_test_dp_mst_sideband_msg_req_decode() 202 KUNIT_EXPECT_TRUE(test, sideband_msg_req_encode_decode(&in)); in drm_test_dp_mst_sideband_msg_req_decode() 204 KUNIT_EXPECT_TRUE(test, sideband_msg_req_encode_decode(&in)); in drm_test_dp_mst_sideband_msg_req_decode() 206 KUNIT_EXPECT_TRUE(test, sideband_msg_req_encode_decode(&in)); in drm_test_dp_mst_sideband_msg_req_decode() 208 KUNIT_EXPECT_TRUE(test, sideband_msg_req_encode_decode(&in)); in drm_test_dp_mst_sideband_msg_req_decode() 212 KUNIT_EXPECT_TRUE(test, sideband_msg_req_encode_decode(&in)); in drm_test_dp_mst_sideband_msg_req_decode() 214 KUNIT_EXPECT_TRUE(test, sideband_msg_req_encode_decode(&in)); in drm_test_dp_mst_sideband_msg_req_decode() 218 KUNIT_EXPECT_TRUE(test, sideband_msg_req_encode_decode(&in)); in drm_test_dp_mst_sideband_msg_req_decode() [all …]
|
D | drm_cmdline_parser_test.c | 119 KUNIT_EXPECT_TRUE(test, mode.specified); in drm_test_cmdline_res() 141 KUNIT_EXPECT_TRUE(test, mode.specified); in drm_test_cmdline_res_vesa() 150 KUNIT_EXPECT_TRUE(test, mode.cvt); in drm_test_cmdline_res_vesa() 163 KUNIT_EXPECT_TRUE(test, mode.specified); in drm_test_cmdline_res_vesa_rblank() 171 KUNIT_EXPECT_TRUE(test, mode.rb); in drm_test_cmdline_res_vesa_rblank() 172 KUNIT_EXPECT_TRUE(test, mode.cvt); in drm_test_cmdline_res_vesa_rblank() 185 KUNIT_EXPECT_TRUE(test, mode.specified); in drm_test_cmdline_res_rblank() 193 KUNIT_EXPECT_TRUE(test, mode.rb); in drm_test_cmdline_res_rblank() 207 KUNIT_EXPECT_TRUE(test, mode.specified); in drm_test_cmdline_res_bpp() 213 KUNIT_EXPECT_TRUE(test, mode.bpp_specified); in drm_test_cmdline_res_bpp() [all …]
|
D | drm_buddy_test.c | 713 KUNIT_EXPECT_TRUE(test, block); in drm_test_buddy_alloc_limit()
|
/linux-6.1.9/mm/kmsan/ |
D | kmsan_test.c | 162 KUNIT_EXPECT_TRUE(test, report_matches(&expect)); in test_uninit_kmalloc() 177 KUNIT_EXPECT_TRUE(test, report_matches(&expect)); in test_init_kmalloc() 189 KUNIT_EXPECT_TRUE(test, report_matches(&expect)); in test_init_kzalloc() 200 KUNIT_EXPECT_TRUE(test, report_matches(&expect)); in test_uninit_stack_var() 211 KUNIT_EXPECT_TRUE(test, report_matches(&expect)); in test_init_stack_var() 251 KUNIT_EXPECT_TRUE(test, report_matches(&expect)); in test_params() 271 KUNIT_EXPECT_TRUE(test, report_matches(&expect)); in test_uninit_multiple_params() 298 KUNIT_EXPECT_TRUE(test, report_matches(&expect)); in test_uninit_kmsan_check_memory() 329 KUNIT_EXPECT_TRUE(test, report_matches(&expect)); in test_init_kmsan_vmap_vunmap() 350 KUNIT_EXPECT_TRUE(test, report_matches(&expect)); in test_init_vmalloc() [all …]
|
/linux-6.1.9/lib/ |
D | list-test.c | 36 KUNIT_EXPECT_TRUE(test, list_empty_careful(&list1)); in list_test_list_init() 37 KUNIT_EXPECT_TRUE(test, list_empty_careful(&list2)); in list_test_list_init() 38 KUNIT_EXPECT_TRUE(test, list_empty_careful(&list3)); in list_test_list_init() 39 KUNIT_EXPECT_TRUE(test, list_empty_careful(list4)); in list_test_list_init() 40 KUNIT_EXPECT_TRUE(test, list_empty_careful(list5)); in list_test_list_init() 122 KUNIT_EXPECT_TRUE(test, list_empty_careful(&a_old)); in list_test_list_replace_init() 161 KUNIT_EXPECT_TRUE(test, list_empty_careful(&a)); in list_test_list_del_init() 181 KUNIT_EXPECT_TRUE(test, list_empty_careful(&a)); in list_test_list_del_init_careful() 197 KUNIT_EXPECT_TRUE(test, list_empty(&list1)); in list_test_list_move() 216 KUNIT_EXPECT_TRUE(test, list_empty(&list1)); in list_test_list_move_tail() [all …]
|
D | test_linear_ranges.c | 155 KUNIT_EXPECT_TRUE(test, found); in range_test_get_selector_high() 189 KUNIT_EXPECT_TRUE(test, found); in range_test_get_selector_low() 197 KUNIT_EXPECT_TRUE(test, found); in range_test_get_selector_low()
|
/linux-6.1.9/lib/kunit/ |
D | kunit-test.c | 43 KUNIT_EXPECT_TRUE(test, ctx->function_called); in kunit_test_try_catch_successful_try_no_catch() 75 KUNIT_EXPECT_TRUE(test, ctx->function_called); in kunit_test_try_catch_unsuccessful_try_does_catch() 139 KUNIT_EXPECT_TRUE(test, list_empty(&ctx->test.resources)); in kunit_resource_test_init_resources() 158 KUNIT_EXPECT_TRUE(test, list_is_last(&res->node, &ctx->test.resources)); in kunit_resource_test_alloc_resource() 197 KUNIT_EXPECT_TRUE(test, list_empty(&ctx->test.resources)); in kunit_resource_test_destroy_resource() 217 KUNIT_EXPECT_TRUE(test, list_empty(&ctx->test.resources)); in kunit_resource_test_remove_resource() 219 KUNIT_EXPECT_TRUE(test, ctx->is_resource_initialized); in kunit_resource_test_remove_resource() 223 KUNIT_EXPECT_TRUE(test, list_empty(&ctx->test.resources)); in kunit_resource_test_remove_resource() 227 KUNIT_EXPECT_TRUE(test, ctx->is_resource_initialized); in kunit_resource_test_remove_resource() 251 KUNIT_EXPECT_TRUE(test, list_empty(&ctx->test.resources)); in kunit_resource_test_cleanup_resources() [all …]
|
D | string-stream-test.c | 18 KUNIT_EXPECT_TRUE(test, string_stream_is_empty(stream)); in string_stream_test_empty_on_creation()
|
D | kunit-example-test.c | 90 KUNIT_EXPECT_TRUE(test, true); in example_all_expect_macros_test()
|
/linux-6.1.9/drivers/clk/ |
D | clk-gate_test.c | 112 KUNIT_EXPECT_TRUE(test, IS_ERR(ret)); in clk_gate_register_test_hiword_invalid() 170 KUNIT_EXPECT_TRUE(test, clk_hw_is_enabled(hw)); in clk_gate_test_enable() 171 KUNIT_EXPECT_TRUE(test, clk_hw_is_prepared(hw)); in clk_gate_test_enable() 172 KUNIT_EXPECT_TRUE(test, clk_hw_is_enabled(parent)); in clk_gate_test_enable() 173 KUNIT_EXPECT_TRUE(test, clk_hw_is_prepared(parent)); in clk_gate_test_enable() 250 KUNIT_EXPECT_TRUE(test, clk_hw_is_enabled(hw)); in clk_gate_test_invert_enable() 251 KUNIT_EXPECT_TRUE(test, clk_hw_is_prepared(hw)); in clk_gate_test_invert_enable() 252 KUNIT_EXPECT_TRUE(test, clk_hw_is_enabled(parent)); in clk_gate_test_invert_enable() 253 KUNIT_EXPECT_TRUE(test, clk_hw_is_prepared(parent)); in clk_gate_test_invert_enable() 323 KUNIT_EXPECT_TRUE(test, clk_hw_is_enabled(hw)); in clk_gate_test_hiword_enable() [all …]
|
D | clk_test.c | 488 KUNIT_EXPECT_TRUE(test, clk_is_match(clk_get_parent(clk), parent)); in clk_test_multiple_parents_mux_get_parent() 507 KUNIT_EXPECT_TRUE(test, clk_has_parent(clk, parent)); in clk_test_multiple_parents_mux_has_parent() 511 KUNIT_EXPECT_TRUE(test, clk_has_parent(clk, parent)); in clk_test_multiple_parents_mux_has_parent() 668 KUNIT_EXPECT_TRUE(test, clk_is_match(parent, new_parent)); in clk_test_orphan_transparent_multiple_parent_mux_set_parent() 992 KUNIT_EXPECT_TRUE(test, clk_is_match(clk_get_parent(clk), parent)); in clk_test_single_parent_mux_get_parent() 1010 KUNIT_EXPECT_TRUE(test, clk_has_parent(clk, parent)); in clk_test_single_parent_mux_has_parent()
|
/linux-6.1.9/mm/kfence/ |
D | kfence_test.c | 340 KUNIT_EXPECT_TRUE(test, report_matches(&expect)); in test_out_of_bounds_read() 346 KUNIT_EXPECT_TRUE(test, report_matches(&expect)); in test_out_of_bounds_read() 364 KUNIT_EXPECT_TRUE(test, report_matches(&expect)); in test_out_of_bounds_write() 381 KUNIT_EXPECT_TRUE(test, report_matches(&expect)); in test_use_after_free_read() 396 KUNIT_EXPECT_TRUE(test, report_matches(&expect)); in test_double_free() 413 KUNIT_EXPECT_TRUE(test, report_matches(&expect)); in test_invalid_addr_free() 433 KUNIT_EXPECT_TRUE(test, report_matches(&expect)); in test_corruption() 439 KUNIT_EXPECT_TRUE(test, report_matches(&expect)); in test_corruption() 482 KUNIT_EXPECT_TRUE(test, report_matches(&expect)); in test_kmalloc_aligned_oob_read() 505 KUNIT_EXPECT_TRUE(test, report_matches(&expect)); in test_kmalloc_aligned_oob_write() [all …]
|
/linux-6.1.9/security/apparmor/ |
D | policy_unpack_test.c | 128 KUNIT_EXPECT_TRUE(test, inbounds(puf->e, 0)); in policy_unpack_test_inbounds_when_inbounds() 129 KUNIT_EXPECT_TRUE(test, inbounds(puf->e, puf->e_size / 2)); in policy_unpack_test_inbounds_when_inbounds() 130 KUNIT_EXPECT_TRUE(test, inbounds(puf->e, puf->e_size)); in policy_unpack_test_inbounds_when_inbounds() 195 KUNIT_EXPECT_TRUE(test, in policy_unpack_test_unpack_blob_with_null_name() 209 KUNIT_EXPECT_TRUE(test, in policy_unpack_test_unpack_blob_with_name() 329 KUNIT_EXPECT_TRUE(test, success); in policy_unpack_test_unpack_nameX_with_null_name() 358 KUNIT_EXPECT_TRUE(test, success); in policy_unpack_test_unpack_nameX_with_name() 448 KUNIT_EXPECT_TRUE(test, success); in policy_unpack_test_unpack_u32_with_null_name() 465 KUNIT_EXPECT_TRUE(test, success); in policy_unpack_test_unpack_u32_with_name() 498 KUNIT_EXPECT_TRUE(test, success); in policy_unpack_test_unpack_u64_with_null_name() [all …]
|
/linux-6.1.9/kernel/kcsan/ |
D | kcsan_test.c | 735 KUNIT_EXPECT_TRUE(test, match_expect); in test_basic() 767 KUNIT_EXPECT_TRUE(test, match_expect); /* Sanity check matches exist. */ in test_concurrent_races() 797 KUNIT_EXPECT_TRUE(test, match_expect); in test_novalue_change() 826 KUNIT_EXPECT_TRUE(test, match_expect); in test_novalue_change_exception() 846 KUNIT_EXPECT_TRUE(test, match_expect); in test_unknown_origin() 871 KUNIT_EXPECT_TRUE(test, match_expect); in test_write_write_assume_atomic() 893 KUNIT_EXPECT_TRUE(test, match_expect); in test_write_write_struct() 915 KUNIT_EXPECT_TRUE(test, match_expect); in test_write_write_struct_part() 949 KUNIT_EXPECT_TRUE(test, match_expect); in test_read_plain_atomic_write() 971 KUNIT_EXPECT_TRUE(test, match_expect); in test_read_plain_atomic_rmw() [all …]
|
/linux-6.1.9/drivers/thunderbolt/ |
D | test.c | 420 KUNIT_EXPECT_TRUE(test, !p); in tb_test_path_basic() 442 KUNIT_EXPECT_TRUE(test, !p); in tb_test_path_not_connected_walk() 453 KUNIT_EXPECT_TRUE(test, !p); in tb_test_path_not_connected_walk() 493 KUNIT_EXPECT_TRUE(test, i < ARRAY_SIZE(test_data)); in tb_test_path_single_hop_walk() 505 KUNIT_EXPECT_TRUE(test, i < ARRAY_SIZE(test_data)); in tb_test_path_single_hop_walk() 552 KUNIT_EXPECT_TRUE(test, i < ARRAY_SIZE(test_data)); in tb_test_path_daisy_chain_walk() 564 KUNIT_EXPECT_TRUE(test, i < ARRAY_SIZE(test_data)); in tb_test_path_daisy_chain_walk() 615 KUNIT_EXPECT_TRUE(test, i < ARRAY_SIZE(test_data)); in tb_test_path_simple_tree_walk() 627 KUNIT_EXPECT_TRUE(test, i < ARRAY_SIZE(test_data)); in tb_test_path_simple_tree_walk() 699 KUNIT_EXPECT_TRUE(test, i < ARRAY_SIZE(test_data)); in tb_test_path_complex_tree_walk() [all …]
|
/linux-6.1.9/drivers/base/test/ |
D | property-entry-test.c | 336 KUNIT_EXPECT_TRUE(test, fwnode_property_read_bool(node, "prop")); in pe_test_bool() 359 KUNIT_EXPECT_TRUE(test, copy[0].is_inline); in pe_test_move_inline_u8() 391 KUNIT_EXPECT_TRUE(test, copy[0].is_inline); in pe_test_move_inline_str() 399 KUNIT_EXPECT_TRUE(test, copy[2].is_inline); in pe_test_move_inline_str()
|
/linux-6.1.9/net/core/ |
D | dev_addr_lists_test.c | 70 KUNIT_EXPECT_TRUE(test, !!netdev->dev_addr); in dev_addr_test_basic()
|
/linux-6.1.9/drivers/platform/chrome/ |
D | cros_ec_proto_test.c | 329 KUNIT_EXPECT_TRUE(test, ec_dev->host_sleep_v1); in cros_ec_proto_test_query_all_normal() 2089 KUNIT_EXPECT_TRUE(test, wake_event); in cros_ec_proto_test_get_next_event_no_mkbp_event() 2152 KUNIT_EXPECT_TRUE(test, more_events); in cros_ec_proto_test_get_next_event_mkbp_event_version0() 2200 KUNIT_EXPECT_TRUE(test, wake_event); in cros_ec_proto_test_get_next_event_mkbp_event_version2() 2383 KUNIT_EXPECT_TRUE(test, ret); in cros_ec_proto_test_check_features_cached() 2425 KUNIT_EXPECT_TRUE(test, ret); in cros_ec_proto_test_check_features_not_cached()
|
/linux-6.1.9/include/kunit/ |
D | test.h | 692 #define KUNIT_EXPECT_TRUE(test, condition) \ macro
|