Home
last modified time | relevance | path

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

12

/linux/lib/
A Dcpumask_kunit.c23 KUNIT_EXPECT_EQ_MSG((test), mask_weight, iter, MASK_MSG(mask)); \
46 KUNIT_EXPECT_EQ_MSG((test), mask_weight, iter, MASK_MSG(mask)); \
55 KUNIT_EXPECT_EQ_MSG((test), mask_weight, iter, MASK_MSG(cpu_##name##_mask)); \
67 KUNIT_EXPECT_EQ_MSG(test, 0, cpumask_weight(&mask_empty), MASK_MSG(&mask_empty)); in test_cpumask_weight()
68 KUNIT_EXPECT_EQ_MSG(test, nr_cpu_ids, cpumask_weight(cpu_possible_mask), in test_cpumask_weight()
70 KUNIT_EXPECT_EQ_MSG(test, nr_cpu_ids, cpumask_weight(&mask_all), MASK_MSG(&mask_all)); in test_cpumask_weight()
76 KUNIT_EXPECT_EQ_MSG(test, 0, cpumask_first(cpu_possible_mask), MASK_MSG(cpu_possible_mask)); in test_cpumask_first()
78 KUNIT_EXPECT_EQ_MSG(test, 0, cpumask_first_zero(&mask_empty), MASK_MSG(&mask_empty)); in test_cpumask_first()
87 KUNIT_EXPECT_EQ_MSG(test, nr_cpu_ids - 1, cpumask_last(cpu_possible_mask), in test_cpumask_last()
93 KUNIT_EXPECT_EQ_MSG(test, 0, cpumask_next_zero(-1, &mask_empty), MASK_MSG(&mask_empty)); in test_cpumask_next()
[all …]
A Dusercopy_kunit.c88 KUNIT_EXPECT_EQ_MSG(test, copy_to_user(umem, kmem, size), 0, in usercopy_test_check_nonzero_user()
132 KUNIT_EXPECT_EQ_MSG(test, copy_struct_from_user(kmem, ksize, umem, usize), 0, in usercopy_test_copy_struct_from_user()
145 KUNIT_EXPECT_EQ_MSG(test, copy_struct_from_user(kmem, ksize, umem, usize), 0, in usercopy_test_copy_struct_from_user()
163 KUNIT_EXPECT_EQ_MSG(test, clear_user(umem + ksize, usize - ksize), 0, in usercopy_test_copy_struct_from_user()
183 KUNIT_EXPECT_EQ_MSG(test, 0, copy_to_user(usermem, kmem, PAGE_SIZE), in usercopy_test_valid()
186 KUNIT_EXPECT_EQ_MSG(test, 0, copy_from_user(kmem, usermem, PAGE_SIZE), in usercopy_test_valid()
194 KUNIT_EXPECT_EQ_MSG(test, 0, \ in usercopy_test_valid()
198 KUNIT_EXPECT_EQ_MSG(test, 0, \ in usercopy_test_valid()
201 KUNIT_EXPECT_EQ_MSG(test, val_##size, check, \ in usercopy_test_valid()
269 KUNIT_EXPECT_EQ_MSG(test, val_##size, 0, \ in usercopy_test_invalid()
[all …]
A 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()
A 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()
A 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()
A Doverflow_kunit.c260 KUNIT_EXPECT_EQ_MSG(test, _of, of, \
263 KUNIT_EXPECT_EQ_MSG(test, _r, r, \
268 KUNIT_EXPECT_EQ_MSG(test, _a_orig, _a_bump, \
270 KUNIT_EXPECT_EQ_MSG(test, _b_orig, _b_bump, \
281 KUNIT_EXPECT_EQ_MSG(test, _a_orig, _a_bump, \
283 KUNIT_EXPECT_EQ_MSG(test, _b_orig, _b_bump, \
403 KUNIT_EXPECT_EQ_MSG(test, __of, of, \
407 KUNIT_EXPECT_EQ_MSG(test, __d, __e, \
722 KUNIT_EXPECT_EQ_MSG(test, _r, expected, \ in overflow_size_helpers_test()
803 KUNIT_EXPECT_EQ_MSG(test, __of, of, \ in overflows_type_test()
[all …]
A Dkunit_iov_iter.c141 KUNIT_EXPECT_EQ_MSG(test, buffer[i], scratch[i], "at i=%x", i); in iov_kunit_copy_to_kvec()
196 KUNIT_EXPECT_EQ_MSG(test, scratch[i], buffer[i], "at i=%x", i); in iov_kunit_copy_from_kvec()
304 KUNIT_EXPECT_EQ_MSG(test, buffer[i], scratch[i], "at i=%x", i); in iov_kunit_copy_to_bvec()
361 KUNIT_EXPECT_EQ_MSG(test, scratch[i], buffer[i], "at i=%x", i); in iov_kunit_copy_from_bvec()
469 KUNIT_EXPECT_EQ_MSG(test, buffer[i], scratch[i], "at i=%x", i); in iov_kunit_copy_to_folioq()
534 KUNIT_EXPECT_EQ_MSG(test, scratch[i], buffer[i], "at i=%x", i); in iov_kunit_copy_from_folioq()
628 KUNIT_EXPECT_EQ_MSG(test, buffer[i], scratch[i], "at i=%x", i); in iov_kunit_copy_to_xarray()
691 KUNIT_EXPECT_EQ_MSG(test, scratch[i], buffer[i], "at i=%x", i); in iov_kunit_copy_from_xarray()
A Dsiphash_kunit.c114 KUNIT_EXPECT_EQ_MSG(test, hash, vector, fmt)
A Dstring_kunit.c538 KUNIT_EXPECT_EQ_MSG(test, wrap.canary1, ULONG_MAX, in string_test_strtomem()
540 KUNIT_EXPECT_EQ_MSG(test, wrap.canary2, ULONG_MAX, in string_test_strtomem()
A Dmemcpy_kunit.c43 KUNIT_EXPECT_EQ_MSG(test, one.data[i], two.data[i], \
/linux/drivers/gpu/drm/tests/
A Ddrm_damage_helper_test.c153 KUNIT_EXPECT_EQ_MSG(test, num_hits, 1, in drm_test_damage_iter_no_damage_fractional_src()
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()
338 KUNIT_EXPECT_EQ_MSG(test, num_hits, 0, "Should have no damage."); in drm_test_damage_iter_single_damage_outside_src()
388 KUNIT_EXPECT_EQ_MSG(test, num_hits, 1, in drm_test_damage_iter_single_damage_intersect_fractional_src()
415 KUNIT_EXPECT_EQ_MSG(test, num_hits, 0, "Should have no damage."); in drm_test_damage_iter_single_damage_outside_fractional_src()
438 KUNIT_EXPECT_EQ_MSG(test, num_hits, 1, in drm_test_damage_iter_single_damage_src_moved()
465 KUNIT_EXPECT_EQ_MSG(test, num_hits, 1, in drm_test_damage_iter_single_damage_fractional_src_moved()
[all …]
A Ddrm_buddy_test.c721 KUNIT_EXPECT_EQ_MSG(test, mm.max_order, DRM_BUDDY_MAX_ORDER, in drm_test_buddy_alloc_limit()
732 KUNIT_EXPECT_EQ_MSG(test, drm_buddy_block_order(block), mm.max_order, in drm_test_buddy_alloc_limit()
736 KUNIT_EXPECT_EQ_MSG(test, drm_buddy_block_size(&mm, block), in drm_test_buddy_alloc_limit()
/linux/drivers/gpu/drm/xe/tests/
A Dxe_lmtt_test.c52 KUNIT_EXPECT_EQ_MSG(test, ops->lmtt_pte_index(addr - 1, n), 0, in test_ops()
54 KUNIT_EXPECT_EQ_MSG(test, ops->lmtt_pte_index(addr + 1, n), 1, in test_ops()
56 KUNIT_EXPECT_EQ_MSG(test, ops->lmtt_pte_index(addr * 2 - 1, n), 1, in test_ops()
58 KUNIT_EXPECT_EQ_MSG(test, ops->lmtt_pte_index(addr * 2, n), 2, in test_ops()
A Dxe_mocs.c72 KUNIT_EXPECT_EQ_MSG(test, l3cc_expected, l3cc, in read_l3cc_table()
105 KUNIT_EXPECT_EQ_MSG(test, mocs_expected, mocs, in read_mocs_table()
/linux/fs/fat/
A 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/net/sunrpc/auth_gss/
A Dgss_krb5_test.c66 KUNIT_EXPECT_EQ_MSG(test, in kdf_case()
114 KUNIT_EXPECT_EQ_MSG(test, in checksum_case()
317 KUNIT_EXPECT_EQ_MSG(test, in rfc3961_nfold_case()
569 KUNIT_EXPECT_EQ_MSG(test, in rfc3962_encrypt_case()
572 KUNIT_EXPECT_EQ_MSG(test, in rfc3962_encrypt_case()
576 KUNIT_EXPECT_EQ_MSG(test, in rfc3962_encrypt_case()
1197 KUNIT_EXPECT_EQ_MSG(test, in rfc6803_encrypt_case()
1201 KUNIT_EXPECT_EQ_MSG(test, in rfc6803_encrypt_case()
1687 KUNIT_EXPECT_EQ_MSG(test, in rfc8009_encrypt_case()
1690 KUNIT_EXPECT_EQ_MSG(test, in rfc8009_encrypt_case()
[all …]
/linux/fs/ext4/
A 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/fs/tests/
A Dexec_kunit.c124 KUNIT_EXPECT_EQ_MSG(test, rc, result->expected_rc, "on loop %d", i); in exec_test_bprm_stack_limits()
126 KUNIT_EXPECT_EQ_MSG(test, bprm.argmin, result->expected_argmin, "on loop %d", i); in exec_test_bprm_stack_limits()
/linux/kernel/
A Dresource_kunit.c89 KUNIT_EXPECT_EQ_MSG(test, ret, exp_ret, "Resources %pR %pR", r1, r2); in resource_do_test()
90 KUNIT_EXPECT_EQ_MSG(test, r->start, exp_r->start, "Start elements are not equal"); in resource_do_test()
91 KUNIT_EXPECT_EQ_MSG(test, r->end, exp_r->end, "End elements are not equal"); in resource_do_test()
/linux/fs/bcachefs/
A Dmean_and_variance_test.c162 KUNIT_EXPECT_EQ_MSG(test, abs(fast_divpow2(i, d)), in mean_and_variance_fast_divpow2()
164 KUNIT_EXPECT_EQ_MSG(test, abs(fast_divpow2(-i, d)), in mean_and_variance_fast_divpow2()
/linux/sound/pci/hda/
A Dcirrus_scodec_test.c218 KUNIT_EXPECT_EQ_MSG(test, ret, 0, "Failed to add swnode\n"); in cirrus_scodec_test_spkid_parse()
227 KUNIT_EXPECT_EQ_MSG(test, ret, v, in cirrus_scodec_test_spkid_parse()
/linux/sound/soc/
A Dsoc-card-test.c53 KUNIT_EXPECT_EQ_MSG(test, mc->shift, i, "For '%s'\n", test_card_controls[i].name); in test_snd_soc_card_get_kcontrol()
A Dsoc-topology-test.c60 KUNIT_EXPECT_EQ_MSG(kunit_comp->kunit, kunit_comp->expect, ret, in d_probe()
225 KUNIT_EXPECT_EQ_MSG(kunit_comp->kunit, kunit_comp->expect, ret, in d_probe_null_comp()
329 KUNIT_EXPECT_EQ_MSG(kunit_comp->kunit, kunit_comp->expect, ret, in d_probe_null_fw()
/linux/include/kunit/
A Dtest.h966 KUNIT_EXPECT_EQ_MSG(test, left, right, NULL)
968 #define KUNIT_EXPECT_EQ_MSG(test, left, right, fmt, ...) \ macro
/linux/drivers/iio/test/
A Diio-test-rescale.c670 KUNIT_EXPECT_EQ_MSG(test, rel_ppm, 0, in iio_rescale_test_scale()

Completed in 58 milliseconds

12