Home
last modified time | relevance | path

Searched refs:expect (Results 1 – 8 of 8) sorted by relevance

/lib/
Dtest_scanf.c63 #define _check_numbers_template(arg_fmt, expect, str, fmt, n_args, ap) \ argument
66 for (; n_args > 0; n_args--, expect++) { \
67 typeof(*expect) got = *va_arg(ap, typeof(expect)); \
69 if (got != *expect) { \
71 str, fmt, *expect, got); \
355 T expect[8], result[8]; \
357 fill_random_array(expect); \
359 for (i = 0; i < ARRAY_SIZE(expect); i++) { \
365 append_fmt(test_buffer, &pos, BUF_SIZE, gen_fmt, expect[i]); \
369 test_array_8(fn, expect, test_buffer, fmt_buffer, result); \
[all …]
Dtest_printf.c46 do_test(int bufsize, const char *expect, int elen, in do_test() argument
97 if (memcmp(test_buffer, expect, written)) { in do_test()
99 bufsize, fmt, test_buffer, written, expect); in do_test()
106 __test(const char *expect, int elen, const char *fmt, ...) in __test() argument
127 failed_tests += do_test(BUF_SIZE, expect, elen, fmt, ap); in __test()
130 failed_tests += do_test(rand, expect, elen, fmt, ap); in __test()
131 failed_tests += do_test(0, expect, elen, fmt, ap); in __test()
136 if (memcmp(p, expect, elen+1)) { in __test()
138 fmt, p, expect); in __test()
146 #define test(expect, fmt, ...) \ argument
[all …]
Datomic64_test.c72 #define TEST_ARGS(bit, op, init, ret, expect, args...) \ argument
76 BUG_ON(atomic##bit##_read(&v) != expect); \
Ddebugobjects.c924 unsigned int expect, unsigned int next) in debug_object_active_state() argument
942 if (obj->astate != expect) in debug_object_active_state()
Doverflow_kunit.c396 #define TEST_ONE_SHIFT(a, s, t, expect, of) do { \ argument
399 t __e = (expect); \
409 #t, #a, #s, #expect); \
DKconfig.debug1438 option expect lockdep splats until these problems have been fully
/lib/zstd/decompress/
Dzstd_decompress.c1829 ZSTD_outBuffer const expect = zds->expectedOutBuffer; in ZSTD_checkOutBuffer() local
1839 if (expect.dst == output->dst && expect.pos == output->pos && expect.size == output->size) in ZSTD_checkOutBuffer()
/lib/zstd/compress/
Dzstd_compress.c5412 ZSTD_inBuffer const expect = cctx->expectedInBuffer; in ZSTD_checkBufferStability() local
5413 if (expect.src != input->src || expect.pos != input->pos || expect.size != input->size) in ZSTD_checkBufferStability()