Home
last modified time | relevance | path

Searched refs:KUNIT_EXPECT_TRUE (Results 1 – 25 of 27) sorted by relevance

12

/linux-6.3-rc2/drivers/gpu/drm/tests/
A Ddrm_cmdline_parser_test.c119 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()
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()
193 KUNIT_EXPECT_TRUE(test, mode.rb); in drm_test_cmdline_res_rblank()
314 KUNIT_EXPECT_TRUE(test, mode.margins); in drm_test_cmdline_res_bpp_refresh_margins()
437 KUNIT_EXPECT_TRUE(test, mode.margins); in drm_test_cmdline_res_bpp_refresh_interlaced_margins_force_on()
459 KUNIT_EXPECT_TRUE(test, mode.margins); in drm_test_cmdline_res_margins_force_on()
479 KUNIT_EXPECT_TRUE(test, mode.cvt); in drm_test_cmdline_res_vesa_margins()
[all …]
A Ddrm_probe_helper_test.c142 KUNIT_EXPECT_TRUE(test, drm_mode_equal(mode, expected)); in drm_test_connector_helper_tv_get_modes_check()
143 KUNIT_EXPECT_TRUE(test, mode->type & DRM_MODE_TYPE_PREFERRED); in drm_test_connector_helper_tv_get_modes_check()
153 KUNIT_EXPECT_TRUE(test, drm_mode_equal(mode, expected)); in drm_test_connector_helper_tv_get_modes_check()
A Ddrm_modes_test.c90 KUNIT_EXPECT_TRUE(test, drm_mode_equal(expected, mode)); in drm_test_modes_analog_tv_ntsc_480i_inlined()
137 KUNIT_EXPECT_TRUE(test, drm_mode_equal(expected, mode)); in drm_test_modes_analog_tv_pal_576i_inlined()
A Ddrm_client_modeset_test.c118 KUNIT_EXPECT_TRUE(test, drm_mode_equal(expected_mode, mode)); in drm_test_pick_cmdline_res_1920_1080_60()
159 KUNIT_EXPECT_TRUE(test, drm_mode_equal(expected_mode, mode)); in drm_test_pick_cmdline_named()
A Ddrm_plane_helper_test.c123 KUNIT_EXPECT_TRUE(test, plane_state->visible); in drm_test_check_plane_state()
/linux-6.3-rc2/mm/kmsan/
A Dkmsan_test.c162 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.3-rc2/lib/
A Dlist-test.c197 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()
308 KUNIT_EXPECT_TRUE(test, list_empty(&list2)); in list_test_list_empty()
694 KUNIT_EXPECT_TRUE(test, list_empty(&list)); in list_test_list_for_each_safe()
714 KUNIT_EXPECT_TRUE(test, list_empty(&list)); in list_test_list_for_each_prev_safe()
833 KUNIT_EXPECT_TRUE(test, hlist_empty(list4)); in hlist_test_init()
834 KUNIT_EXPECT_TRUE(test, hlist_empty(list5)); in hlist_test_init()
848 KUNIT_EXPECT_TRUE(test, hlist_unhashed(&a)); in hlist_test_unhashed()
858 KUNIT_EXPECT_TRUE(test, hlist_unhashed(&a)); in hlist_test_unhashed()
956 KUNIT_EXPECT_TRUE(test, hlist_fake(&a)); in hlist_test_fake()
[all …]
A Dhashtable_test.c30 KUNIT_EXPECT_TRUE(test, hash_empty(hash1)); in hashtable_test_hash_init()
31 KUNIT_EXPECT_TRUE(test, hash_empty(hash2)); in hashtable_test_hash_init()
39 KUNIT_EXPECT_TRUE(test, hash_empty(hash)); in hashtable_test_hash_empty()
61 KUNIT_EXPECT_TRUE(test, hash_hashed(&a.node)); in hashtable_test_hash_hashed()
62 KUNIT_EXPECT_TRUE(test, hash_hashed(&b.node)); in hashtable_test_hash_hashed()
120 KUNIT_EXPECT_TRUE(test, hash_empty(hash)); in hashtable_test_hash_del()
A Dtest_linear_ranges.c146 KUNIT_EXPECT_TRUE(test, found); in range_test_get_selector_high()
180 KUNIT_EXPECT_TRUE(test, found); in range_test_get_selector_low()
188 KUNIT_EXPECT_TRUE(test, found); in range_test_get_selector_low()
A Dfortify_kunit.c188 KUNIT_EXPECT_TRUE(test, orig != NULL); \
193 KUNIT_EXPECT_TRUE(test, orig != NULL); \
198 KUNIT_EXPECT_TRUE(test, orig != NULL); \
256 KUNIT_EXPECT_TRUE(test, orig != NULL); \
294 KUNIT_EXPECT_TRUE(test, orig != NULL); \
A Doverflow_kunit.c1012 KUNIT_EXPECT_TRUE(test, __same_type(var++, int)); in same_type_test()
1014 KUNIT_EXPECT_TRUE(test, __same_type(int, var++)); in same_type_test()
1016 KUNIT_EXPECT_TRUE(test, __same_type(var++, var++)); in same_type_test()
/linux-6.3-rc2/lib/kunit/
A Dkunit-test.c43 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()
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()
366 KUNIT_EXPECT_TRUE(test, list_empty(&test->resources)); in kunit_resource_test_static()
[all …]
A Dstring-stream-test.c18 KUNIT_EXPECT_TRUE(test, string_stream_is_empty(stream)); in string_stream_test_empty_on_creation()
A Dkunit-example-test.c94 KUNIT_EXPECT_TRUE(test, true); in example_all_expect_macros_test()
/linux-6.3-rc2/drivers/clk/
A Dclk-gate_test.c112 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()
323 KUNIT_EXPECT_TRUE(test, clk_hw_is_enabled(hw)); in clk_gate_test_hiword_enable()
324 KUNIT_EXPECT_TRUE(test, clk_hw_is_prepared(hw)); in clk_gate_test_hiword_enable()
[all …]
A Dclk_test.c488 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.3-rc2/mm/kfence/
A Dkfence_test.c340 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()
515 KUNIT_EXPECT_TRUE(test, test_cache); in test_shrink_memcache()
[all …]
/linux-6.3-rc2/security/apparmor/
A Dpolicy_unpack_test.c131 KUNIT_EXPECT_TRUE(test, aa_inbounds(puf->e, 0)); in policy_unpack_test_inbounds_when_inbounds()
194 KUNIT_EXPECT_TRUE(test, in policy_unpack_test_unpack_blob_with_null_name()
208 KUNIT_EXPECT_TRUE(test, in policy_unpack_test_unpack_blob_with_name()
328 KUNIT_EXPECT_TRUE(test, success); in policy_unpack_test_unpack_nameX_with_null_name()
357 KUNIT_EXPECT_TRUE(test, success); in policy_unpack_test_unpack_nameX_with_name()
447 KUNIT_EXPECT_TRUE(test, success); in policy_unpack_test_unpack_u32_with_null_name()
464 KUNIT_EXPECT_TRUE(test, success); in policy_unpack_test_unpack_u32_with_name()
497 KUNIT_EXPECT_TRUE(test, success); in policy_unpack_test_unpack_u64_with_null_name()
514 KUNIT_EXPECT_TRUE(test, success); in policy_unpack_test_unpack_u64_with_name()
542 KUNIT_EXPECT_TRUE(test, success); in policy_unpack_test_unpack_X_code_match()
[all …]
/linux-6.3-rc2/kernel/kcsan/
A Dkcsan_test.c735 KUNIT_EXPECT_TRUE(test, match_expect); in test_basic()
797 KUNIT_EXPECT_TRUE(test, match_expect); in test_novalue_change()
826 KUNIT_EXPECT_TRUE(test, match_expect); in test_novalue_change_exception()
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()
1030 KUNIT_EXPECT_TRUE(test, match_expect); in test_assert_exclusive_writer()
1048 KUNIT_EXPECT_TRUE(test, match_expect); in test_assert_exclusive_access()
1103 KUNIT_EXPECT_TRUE(test, match_expect); in test_assert_exclusive_bits_change()
[all …]
/linux-6.3-rc2/drivers/hid/
A Dhid-input-test.c23 KUNIT_EXPECT_TRUE(test, handled); in hid_test_input_set_battery_charge_status()
27 KUNIT_EXPECT_TRUE(test, handled); in hid_test_input_set_battery_charge_status()
/linux-6.3-rc2/drivers/thunderbolt/
A Dtest.c420 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()
2637 KUNIT_EXPECT_TRUE(test, !p); in tb_test_property_parse()
2639 KUNIT_EXPECT_TRUE(test, !p); in tb_test_property_parse()
[all …]
/linux-6.3-rc2/drivers/base/test/
A Dproperty-entry-test.c336 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.3-rc2/drivers/gpu/drm/vc4/tests/
A Dvc4_test_pv_muxing.c163 KUNIT_EXPECT_TRUE(test, new_hvs_state->fifo_state[channel].in_use); in check_channel_for_encoder()
165 KUNIT_EXPECT_TRUE(test, check_fn(type, channel)); in check_channel_for_encoder()
695 KUNIT_EXPECT_TRUE(test, in drm_vc4_test_pv_muxing()
701 KUNIT_EXPECT_TRUE(test, check_channel_for_encoder(test, state, enc_type, in drm_vc4_test_pv_muxing()
/linux-6.3-rc2/net/core/
A Ddev_addr_lists_test.c70 KUNIT_EXPECT_TRUE(test, !!netdev->dev_addr); in dev_addr_test_basic()
/linux-6.3-rc2/drivers/platform/chrome/
A Dcros_ec_proto_test.c330 KUNIT_EXPECT_TRUE(test, ec_dev->host_sleep_v1); in cros_ec_proto_test_query_all_normal()
2090 KUNIT_EXPECT_TRUE(test, wake_event); in cros_ec_proto_test_get_next_event_no_mkbp_event()
2153 KUNIT_EXPECT_TRUE(test, more_events); in cros_ec_proto_test_get_next_event_mkbp_event_version0()
2201 KUNIT_EXPECT_TRUE(test, wake_event); in cros_ec_proto_test_get_next_event_mkbp_event_version2()
2384 KUNIT_EXPECT_TRUE(test, ret); in cros_ec_proto_test_check_features_cached()
2426 KUNIT_EXPECT_TRUE(test, ret); in cros_ec_proto_test_check_features_not_cached()

Completed in 41 milliseconds

12