Home
last modified time | relevance | path

Searched refs:KUNIT_EXPECT_EQ_MSG (Results 1 – 17 of 17) sorted by relevance

/linux-6.1.9/lib/
Dcpumask_kunit.c23 KUNIT_EXPECT_EQ_MSG((test), mask_weight, iter, MASK_MSG(mask)); \
33 KUNIT_EXPECT_EQ_MSG((test), nr_cpu_ids - mask_weight, iter, MASK_MSG(mask)); \
56 KUNIT_EXPECT_EQ_MSG((test), mask_weight, iter, MASK_MSG(mask)); \
65 KUNIT_EXPECT_EQ_MSG((test), mask_weight, iter, MASK_MSG(cpu_##name##_mask)); \
77 KUNIT_EXPECT_EQ_MSG(test, 0, cpumask_weight(&mask_empty), MASK_MSG(&mask_empty)); in test_cpumask_weight()
78 KUNIT_EXPECT_EQ_MSG(test, nr_cpu_ids, cpumask_weight(cpu_possible_mask), in test_cpumask_weight()
80 KUNIT_EXPECT_EQ_MSG(test, nr_cpumask_bits, cpumask_weight(&mask_all), MASK_MSG(&mask_all)); in test_cpumask_weight()
86 KUNIT_EXPECT_EQ_MSG(test, 0, cpumask_first(cpu_possible_mask), MASK_MSG(cpu_possible_mask)); in test_cpumask_first()
88 KUNIT_EXPECT_EQ_MSG(test, 0, cpumask_first_zero(&mask_empty), MASK_MSG(&mask_empty)); in test_cpumask_first()
97 KUNIT_EXPECT_EQ_MSG(test, nr_cpu_ids - 1, cpumask_last(cpu_possible_mask), in test_cpumask_last()
[all …]
Dtest_hash.c76 KUNIT_EXPECT_EQ_MSG(test, params->h1, params->h2, in test_int__hash_32()
89 KUNIT_EXPECT_EQ_MSG(test, params->h1, params->h2, in test_int_hash_64()
164 KUNIT_EXPECT_EQ_MSG(test, string_or, -1u, in test_string_or()
187 KUNIT_EXPECT_EQ_MSG(test, hashlen_len(hashlen), j-i, in test_hash_or()
191 KUNIT_EXPECT_EQ_MSG(test, hashlen_hash(hashlen), h0, in test_hash_or()
200 KUNIT_EXPECT_EQ_MSG(test, hash_or[0][0], -1u, in test_hash_or()
205 KUNIT_EXPECT_EQ_MSG(test, hash_or[1][0], -1u, in test_hash_or()
215 KUNIT_EXPECT_EQ_MSG(test, hash_or[0][i], m, in test_hash_or()
218 KUNIT_EXPECT_EQ_MSG(test, hash_or[1][i], m, in test_hash_or()
Dtest_list_sort.c39 KUNIT_EXPECT_EQ_MSG(test, ela->poison1, TEST_POISON1, "bad poison"); in check()
40 KUNIT_EXPECT_EQ_MSG(test, ela->poison2, TEST_POISON2, "bad poison"); in check()
42 KUNIT_EXPECT_EQ_MSG(test, elb->poison1, TEST_POISON1, "bad poison"); in check()
43 KUNIT_EXPECT_EQ_MSG(test, elb->poison2, TEST_POISON2, "bad poison"); in check()
106 KUNIT_EXPECT_EQ_MSG(test, count, TEST_LIST_LEN, in list_sort_test()
Dcmdline_kunit.c50 KUNIT_EXPECT_EQ_MSG(test, ret, rc, fmt, in); in cmdline_do_one_test()
116 KUNIT_EXPECT_EQ_MSG(test, r[0], e[0], "in test %u (parsed) expected %d numbers, got %d", in cmdline_do_one_range_test()
119 KUNIT_EXPECT_EQ_MSG(test, r[i], e[i], "in test %u at %u", n, i); in cmdline_do_one_range_test()
123 KUNIT_EXPECT_EQ_MSG(test, r[0], e[0], "in test %u (validated) expected %d numbers, got %d", in cmdline_do_one_range_test()
Doverflow_kunit.c259 KUNIT_EXPECT_EQ_MSG(test, _of, of, \
262 KUNIT_EXPECT_EQ_MSG(test, _r, r, \
267 KUNIT_EXPECT_EQ_MSG(test, _a_orig, _a_bump, "Unexpected " #op " macro side-effect!\n"); \
268 KUNIT_EXPECT_EQ_MSG(test, _b_orig, _b_bump, "Unexpected " #op " macro side-effect!\n"); \
343 KUNIT_EXPECT_EQ_MSG(test, __of, of, \
347 KUNIT_EXPECT_EQ_MSG(test, __d, __e, \
665 KUNIT_EXPECT_EQ_MSG(test, _r, expected, \ in overflow_size_helpers_test()
Dmemcpy_kunit.c43 KUNIT_EXPECT_EQ_MSG(test, one.data[i], two.data[i], \
284 KUNIT_EXPECT_EQ_MSG(test, wrap.canary1, ULONG_MAX, in strtomem_test()
286 KUNIT_EXPECT_EQ_MSG(test, wrap.canary2, ULONG_MAX, in strtomem_test()
/linux-6.1.9/drivers/gpu/drm/tests/
Ddrm_damage_helper_test.c133 KUNIT_EXPECT_EQ_MSG(test, num_hits, 1, "Should return plane src as damage."); in drm_test_damage_iter_no_damage()
153 KUNIT_EXPECT_EQ_MSG(test, num_hits, 1, in drm_test_damage_iter_no_damage_fractional_src()
173 KUNIT_EXPECT_EQ_MSG(test, num_hits, 1, "Should return plane src as damage."); in drm_test_damage_iter_no_damage_src_moved()
193 KUNIT_EXPECT_EQ_MSG(test, num_hits, 1, "Should return plane src as damage."); in drm_test_damage_iter_no_damage_fractional_src_moved()
212 KUNIT_EXPECT_EQ_MSG(test, num_hits, 0, "Should have no damage."); in drm_test_damage_iter_no_damage_not_visible()
230 KUNIT_EXPECT_EQ_MSG(test, num_hits, 0, "Should have no damage."); in drm_test_damage_iter_no_damage_no_crtc()
248 KUNIT_EXPECT_EQ_MSG(test, num_hits, 0, "Should have no damage."); in drm_test_damage_iter_no_damage_no_fb()
270 KUNIT_EXPECT_EQ_MSG(test, num_hits, 1, "Should return damage when set."); in drm_test_damage_iter_simple_damage()
292 KUNIT_EXPECT_EQ_MSG(test, num_hits, 1, "Should return damage when set."); in drm_test_damage_iter_single_damage()
315 KUNIT_EXPECT_EQ_MSG(test, num_hits, 1, "Should return damage clipped to src."); in drm_test_damage_iter_single_damage_intersect_src()
[all …]
Ddrm_buddy_test.c464 KUNIT_EXPECT_EQ_MSG(test, drm_buddy_block_order(block), order, in drm_test_buddy_alloc_smoke()
704 KUNIT_EXPECT_EQ_MSG(test, mm.max_order, DRM_BUDDY_MAX_ORDER, in drm_test_buddy_alloc_limit()
715 KUNIT_EXPECT_EQ_MSG(test, drm_buddy_block_order(block), mm.max_order, in drm_test_buddy_alloc_limit()
719 KUNIT_EXPECT_EQ_MSG(test, drm_buddy_block_size(&mm, block), in drm_test_buddy_alloc_limit()
Ddrm_dp_mst_helper_test.c39 KUNIT_EXPECT_EQ_MSG(test, pbn, test_params[i].expected, in drm_test_dp_mst_calc_pbn_mode()
/linux-6.1.9/fs/fat/
Dfat_test.c145 KUNIT_EXPECT_EQ_MSG(test, in fat_time_fat2unix_test()
149 KUNIT_EXPECT_EQ_MSG(test, in fat_time_fat2unix_test()
168 KUNIT_EXPECT_EQ_MSG(test, in fat_time_unix2fat_test()
172 KUNIT_EXPECT_EQ_MSG(test, in fat_time_unix2fat_test()
176 KUNIT_EXPECT_EQ_MSG(test, in fat_time_unix2fat_test()
/linux-6.1.9/kernel/
Dresource_kunit.c87 KUNIT_EXPECT_EQ_MSG(test, ret, exp_ret, "Resources %pR %pR", r1, r2); in resource_do_test()
88 KUNIT_EXPECT_EQ_MSG(test, r->start, exp_r->start, "Start elements are not equal"); in resource_do_test()
89 KUNIT_EXPECT_EQ_MSG(test, r->end, exp_r->end, "End elements are not equal"); in resource_do_test()
/linux-6.1.9/fs/ext4/
Dinode-test.c252 KUNIT_EXPECT_EQ_MSG(test, in inode_test_xtimestamp_decoding()
260 KUNIT_EXPECT_EQ_MSG(test, in inode_test_xtimestamp_decoding()
/linux-6.1.9/sound/soc/
Dsoc-topology-test.c66 KUNIT_EXPECT_EQ_MSG(kunit_comp->kunit, kunit_comp->expect, ret, in d_probe()
231 KUNIT_EXPECT_EQ_MSG(kunit_comp->kunit, kunit_comp->expect, ret, in d_probe_null_comp()
335 KUNIT_EXPECT_EQ_MSG(kunit_comp->kunit, kunit_comp->expect, ret, in d_probe_null_fw()
/linux-6.1.9/include/kunit/
Dtest.h733 KUNIT_EXPECT_EQ_MSG(test, left, right, NULL)
735 #define KUNIT_EXPECT_EQ_MSG(test, left, right, fmt, ...) \ macro
/linux-6.1.9/Documentation/dev-tools/kunit/
Dtips.rst174 KUNIT_EXPECT_EQ_MSG(test, strlen(some_str), 40, "some_str='%s'", some_str);
/linux-6.1.9/drivers/iio/test/
Diio-test-rescale.c670 KUNIT_EXPECT_EQ_MSG(test, rel_ppm, 0, in iio_rescale_test_scale()
/linux-6.1.9/kernel/kcsan/
Dkcsan_test.c543 KUNIT_EXPECT_EQ_MSG(test, reorder_access->size, \ in test_barrier_nothreads()