Home
last modified time | relevance | path

Searched refs:expected (Results 1 – 21 of 21) sorted by relevance

/lib/
A Dglobtest.c16 bool expected; member
19 static bool __pure __init test(char const *pat, char const *str, bool expected) in test() argument
22 bool success = match == expected; in test()
144 bool expected = *p++ & 1; in glob_init() local
148 successes += test(pat, p, expected); in glob_init()
A Dpercpu_test.c6 #define CHECK(native, pcp, expected) \ argument
8 WARN((native) != (expected), \
11 (long long)(expected), (long long)(expected)); \
12 WARN(__this_cpu_read(pcp) != (expected), \
15 (long long)(expected), (long long)(expected)); \
A Ddhry_1.c227 #define dhry_assert_int_eq(val, expected) \ in dhry() argument
228 if (val != expected) \ in dhry()
230 expected); \ in dhry()
234 #define dhry_assert_char_eq(val, expected) \ in dhry() argument
235 if (val != expected) \ in dhry()
237 expected); \ in dhry()
241 #define dhry_assert_string_eq(val, expected) \ in dhry() argument
242 if (strcmp(val, expected)) \ in dhry()
244 expected); \ in dhry()
A Dtest_bitmap.c402 const unsigned long *expected; member
513 if (!err && ptest.expected in test_bitmap_parselist()
514 && !__bitmap_equal(bmap, ptest.expected, ptest.nbits)) { in test_bitmap_parselist()
517 *ptest.expected); in test_bitmap_parselist()
534 char expected[256]; in test_bitmap_printlist() local
556 if (strncmp(buf, expected, slen)) { in test_bitmap_printlist()
630 if (!err && test.expected in test_bitmap_parse()
631 && !__bitmap_equal(bmap, test.expected, test.nbits)) { in test_bitmap_parse()
634 *test.expected); in test_bitmap_parse()
1015 unsigned long expected[4]; member
[all …]
A Dtest_rhashtable.c145 bool expected = !(i % 2); in test_rht_lookup() local
151 expected = false; in test_rht_lookup()
155 if (expected && !obj) { in test_rht_lookup()
158 } else if (!expected && obj) { in test_rht_lookup()
162 } else if (expected && obj) { in test_rht_lookup()
A Dtest_lockup.c437 unsigned int expected) in test_magic() argument
445 if (get_kernel_nofault(magic, ptr) || magic != expected) { in test_magic()
447 addr, offset, magic, expected); in test_magic()
A Dtest_maple_tree.c112 unsigned long expected, int eret, void *ptr) in check_mtree_alloc_range() argument
115 unsigned long result = expected + 1; in check_mtree_alloc_range()
124 MT_BUG_ON(mt, result != expected); in check_mtree_alloc_range()
129 unsigned long expected, int eret, void *ptr) in check_mtree_alloc_rrange() argument
132 unsigned long result = expected + 1; in check_mtree_alloc_rrange()
141 MT_BUG_ON(mt, result != expected); in check_mtree_alloc_rrange()
156 unsigned long start, unsigned long end, void *ptr, int expected) in check_store_range() argument
162 MT_BUG_ON(mt, ret != expected); in check_store_range()
172 unsigned long start, unsigned long end, void *ptr, int expected) in check_insert_range() argument
178 MT_BUG_ON(mt, ret != expected); in check_insert_range()
A Dlocking-selftest.c1430 static void dotest(void (*testcase_fn)(void), int expected, int lockclass_mask) in dotest() argument
1449 if (expected == FAILURE && debug_locks) { in dotest()
1455 if (debug_locks != expected) { in dotest()
1466 lockclass_mask, debug_locks, expected); in dotest()
A DKconfig.ubsan117 flow reaching an expected-to-be-unreachable position.
A DKconfig.kcsan165 # are not expected to be switched frequently by non-testers or at runtime.
A DKconfig.debug885 verifying if they comply with expected generic MM semantics. This
887 new additions of these helpers still conform to expected
/lib/tests/
A Dusercopy_kunit.c96 int expected = is_zeroed(kmem + start, len); in usercopy_test_check_nonzero_user() local
98 KUNIT_ASSERT_EQ_MSG(test, retval, expected, in usercopy_test_check_nonzero_user()
100 retval, expected, start, end); in usercopy_test_check_nonzero_user()
108 char *umem_src = NULL, *expected = NULL; in usercopy_test_copy_struct_from_user() local
118 expected = kunit_kmalloc(test, size, GFP_KERNEL); in usercopy_test_copy_struct_from_user()
119 KUNIT_ASSERT_NOT_ERR_OR_NULL(test, expected); in usercopy_test_copy_struct_from_user()
130 memcpy(expected, umem_src, ksize); in usercopy_test_copy_struct_from_user()
135 KUNIT_EXPECT_MEMEQ_MSG(test, kmem, expected, ksize, in usercopy_test_copy_struct_from_user()
142 memcpy(expected, umem_src, usize); in usercopy_test_copy_struct_from_user()
143 memset(expected + usize, 0x0, ksize - usize); in usercopy_test_copy_struct_from_user()
[all …]
A Dchecksum_kunit.c578 u16 expected; in test_ip_fast_csum() local
583 expected = in test_ip_fast_csum()
587 CHECK_EQ(to_sum16(expected), csum_result); in test_ip_fast_csum()
A Dtest_ratelimit.c15 #define test_ratelimited(test, expected) \ argument
16 KUNIT_ASSERT_EQ(test, ___ratelimit(&testrl, "test_ratelimit_smoke"), (expected))
A Dfortify_kunit.c139 #define KUNIT_EXPECT_BOS(test, p, expected, name) \ argument
141 expected, \
145 #define KUNIT_EXPECT_BDOS(test, p, expected, name) \ argument
147 KUNIT_EXPECT_EQ(test, expected, expected)
149 #define KUNIT_EXPECT_BDOS(test, p, expected, name) \ argument
151 expected, \
157 size_t expected = (_expected); \
160 KUNIT_EXPECT_BOS(test, p, expected, #alloc); \
161 KUNIT_EXPECT_BDOS(test, p, expected, #alloc); \
167 size_t expected = (_expected); \
[all …]
A Dstring_kunit.c345 int expected, int chars, int terminator, int pad) in strscpy_check() argument
365 KUNIT_EXPECT_LE_MSG(test, expected, max_expected, in strscpy_check()
367 expected, max_expected); in strscpy_check()
370 KUNIT_ASSERT_EQ(test, written, expected); in strscpy_check()
A Doverflow_kunit.c720 #define check_one_size_helper(expected, func, args...) do { \ in overflow_size_helpers_test() argument
722 KUNIT_EXPECT_EQ_MSG(test, _r, expected, \ in overflow_size_helpers_test()
724 (size_t)(expected), _r); \ in overflow_size_helpers_test()
/lib/zstd/decompress/
A Dzstd_decompress.c1164 return dctx->expected; in ZSTD_nextSrcSizeToDecompressWithInputSize()
1166 return dctx->expected; in ZSTD_nextSrcSizeToDecompressWithInputSize()
1233 dctx->expected = ZSTD_blockHeaderSize; in ZSTD_decompressContinue()
1242 dctx->expected = cBlockSize; in ZSTD_decompressContinue()
1252 dctx->expected = 4; in ZSTD_decompressContinue()
1282 dctx->expected -= rSize; in ZSTD_decompressContinue()
1300 if (dctx->expected > 0) { in ZSTD_decompressContinue()
1311 dctx->expected = 4; in ZSTD_decompressContinue()
1335 dctx->expected = 0; in ZSTD_decompressContinue()
1350 dctx->expected = 0; in ZSTD_decompressContinue()
[all …]
A Dzstd_decompress_internal.h139 size_t expected; member
/lib/kunit/
A Dassert_test.c85 char *expected, const char *format, ...) in verify_assert_print_msg() argument
96 KUNIT_EXPECT_STREQ(test, get_str_from_stream(test, stream), expected); in verify_assert_print_msg()
A DKconfig46 expected.

Completed in 44 milliseconds